Redirecionamento:: route(profile) and with() in laravel
// For a route with the following URI: profile/{id}
return redirect()->route('profile', [$user]);
Redirecionamento:: route(profile) and with() in laravel
// For a route with the following URI: profile/{id}
return redirect()->route('profile', ['id' => 1]);