I am writing @csrf but getting 419 error
WorkController.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
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2zv60sN
via IFTTT
Aucun commentaire:
Enregistrer un commentaire