{{dd(request()->route()->parameters)}}
<a class="nav-link" href=" {{ route('profiles.show',$logged_user) }}">
Route::get('/menu/{category}/{product}/{item}', ['as' => 'named.route' , 'uses' => 'MenuController@listItem']);
// to get the actual linke
route('named.route', ['category' => $category->id, 'product' => $product->id, 'item' => $item->id]);
//Swap out PARAMETER_HERE with the specific parameter you need.
Route::current()->parameter('PARAMETER_HERE')
//A common use case for this would be to output specific content based on conditional logic.
@if( Route::current()->parameter('account') === 'edit' )
//Edit Account Form Here
@endif
//Swap out PARAMETER_HERE with the specific parameter you need.
Route::current()->parameter('PARAMETER_HERE')
//A common use case for this would be to output specific content based on conditional logic.
@if( Route::current()->parameter('account') === 'edit' )
//Edit Account Form Here
@endif
Route::get('/posts/{post}/comments/{comment}', function ($postId, $commentId) {
//
});
Route::get('/user/{id}/profile', function ($id) {
//
})->name('profile');
$url = route('profile', ['id' => 1]);