daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Feb 16th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Route::get('/', function () {
  2.     return view('welcome');
  3. });
  4.  
  5. // hanya untuk tamu yg belum auth
  6. Route::get('/login', 'LoginController@getLogin')->middleware('guest');
  7. Route::post('/login', 'LoginController@postLogin');
  8. Route::get('/logout', 'LoginController@logout');;
  9.  
  10. Route::get('/admin', function() {
  11.   return view('admin');
  12. })->middleware('auth:admin');
  13.  
  14. Route::get('/user', function() {
  15.   return view('user');
  16. })->middleware('auth:user');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top