I need my site to be behind a login wall. so far I have done this with an "if" statement:
Route::get('/', function() {
if (Auth::check()) {
return view('pages.feed');
} else {
return view('auth.login');
}
});
i also need to call the feedController though. how can i add
'feedController@index'
to the statement?