1<form method="POST" action="{{ route('route.name', [ 'id'=> $item->id ]) }}">
2 @csrf
3 <input type="hidden" name="_method" value="DELETE">
4 <button type="submit" class="btn btn-danger btn-icon">
5 <i data-feather="delete"></i>
6 </button>
7 </form>
1Route::get('/menu/{category}/{product}/{item}', ['as' => 'named.route' , 'uses' => 'MenuController@listItem']);
2
3// to get the actual linke
4route('named.route', ['category' => $category->id, 'product' => $product->id, 'item' => $item->id]);
1Route::get('/novanoticia', 'HomeController@getNovaNoticia')->name('route_name');
2Route::get('/novanoticia', ['as' => 'route_name', 'uses' => 'HomeController@getNovaNoticia']);
3
1Route::view('/welcome', 'welcome');
2
3Route::view('/welcome', 'welcome', ['name' => 'Taylor']);