I have web app by Laravel ,I want to make routing depend on login status inside web.php file for a reason. i make this :
Route::get('/', function () {
if (!Auth::guest()){
return ???????
}
else {
return view('welcome');
}
I want to return route named "home" , How can I do that ?