jeudi 29 août 2019

I wrote a csrf tag, but somehow 419 came back

I am writing @csrf but getting 419 error

index.blade.php

<form action="" method="post">
@csrf
<input type="hidden" name="id" value="">
<label for="input">InputPerson</label>
<select name="user_name">
    @foreach($users as $user)
    <option value=""></option>
    @endforeach
</select>

web.php

Route::post('/work/{id}', 'WorkController@store')->name('work.store');

I should be able to save without 419 error but it is not happening



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire