I've made a small laravel project but the delete method is nog working:
I use a resource controller my route is :
Route::resource('roles','Admin\RoleController');
in my view I have
<form action="" style="display:inline">
@method('delete')
@csrf
<button type="submit" class="btn btn-danger"><i class="fa fa-trash"></i></button>
</form>
But when i click the button it will show me the role ( = get method of the resource ) What am I doing wrong ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire