Laravel PDF file cant submit

Published

Itried to generate editable pdf file with laravel and then submit the modification, but i have some issue :

enter image description here

1- the value of the button is not showin
2- when I submit i have this error in console : Failed to load resource: the server responded with a status of 419 ()

my view :


<form method="post" action=" {{route ('inventory_quantity.update')}} ">
    <input name="_token" type="hidden" value="{{ csrf_token() }}">
    <input type="submit" name="button_submit" value="Mise a jour" id="">
    <table class="blueTable">
        <tr>...</tr>
        <tbody>
           .......
                <td >         
                    <input type="text" name="reel{{$item->id}}" id="{{$item->id}}">      
                </td>                 
            </tr>
        @endforeach        
        </tbody>
    </table>
</form> 

web.php :

Route::post('/inventories/quantity/update', [InventoryController::class, 'updateQuantity'])->name('inventory_quantity.update');

controller :

 public function UpdateQuantity(Request $request)
    {
    //just for testing
        $item = Item::find(1);
        $item->upadate([
            'qte_relle' => 23
        ]);
        dd($request);
    }

Source: Laravel

Published
Categorised as fillable, laravel, pdf, php Tagged , , ,

Answers

Leave a Reply

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq