has('user')) { return redirect()->route('public'); } else { return redirect()->route('home'); } }); Route::get('/timeline/public', 'TimelineController@public_timeline') ->name('public'); Route::get('/timeline/home', 'TimelineController@home_timeline') ->name('home'); Route::post('/timeline/home', 'TimelineController@post_status'); Route::get('/status/{status_id}', 'StatusController@show_status') ->name('status'); Route::get('/status/{status_id}/favourite', 'StatusController@favourite_status'); Route::get('/status/{status_id}/unfavourite', 'StatusController@unfavourite_status'); Route::get('/login', 'LoginController@login') ->name('login'); Route::get('/callback', 'LoginController@callback');