lundi 18 novembre 2019

Missing required parameters for [Route: admin.event.destroy] [URI: admin/evenment/event/{id}]

Hey guys i have an error when i submit the delete it says that i'm not sending the id to the route i think, that's the code to send the id to the route (and sorry for my english),

<form id="del_type" action="" method="post">
                                {!! method_field('delete') !!}
                                
                                <button class="btn btn-danger" type="submit" id="del_id">Supprimer</button>

it's wierd cause when i submit it's deleting the element from the database but with this error and in the URI i can see the id take a look at the routes

Route::delete('evenment/event/{id}','EventController@destroy')->name('event.destroy');


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire