Created
October 7, 2019 17:53
-
-
Save CryDeTaan/586bdba66e3eabb281cbba9f0fb853b9 to your computer and use it in GitHub Desktop.
Gist for Medium post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* ... SNIP ... */ | |
Route::get('/admin/', function () { | |
if (Auth::check()) { | |
return view('admin'); | |
} | |
return redirect('/login'); | |
}); | |
Route::get('/users', 'UsersController@index'); | |
Route::post('/users', 'UsersController@create'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment