Laravel PDF file cant submit


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">
                <td >         
                    <input type="text" name="reel{{$item->id}}" id="{{$item->id}}">      

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);
            'qte_relle' => 23

Source: Laravel

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


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