laravel route()->with() code example
Example 1: laravel route param blade
<a class="nav-link" href=" {{ route('profiles.show',$logged_user) }}">
Example 2: route() and with() in laravel
Route::get('user/{id}/profile', function ($id) {
})->name('profile');
$url = route('profile', ['id' => 1, 'photos' => 'yes']);
Example 3: laraval routing
Route::redirect('/here', '/there', 301);
Example 4: laraval routing
use App\Http\Controllers\UserController;
use App\Models\User;
Route::get('/users/{user}', [UserController::class, 'show']);
public function show(User $user)
{
return view('user.profile', ['user' => $user]);
}