laravel pass route parameter from view code example
Example 1: laravel route param blade
<a class="nav-link" href=" {{ route('profiles.show',$logged_user) }}">
Example 2: pass parameter to view laravel
Route::get('/', function () {
return view('greeting', ['name' => 'James']);
});