i have this function in controller:
public function deleteItem( $id){
this in routes:
Route::delete('deleteItem', 'CommandsController@deleteItem')->name('deleteItem');
and i try to call it from view like this:
{!! Form::open(['method' => 'DELETE', 'route' => ['deleteItem', $item->id]]) !!}
but when i confirm form i get in browser address:
deleteItem?5
questions are how to get parameter in controller or how to pass parameter to get this address:
deleteItem/5
thank you