Advertisement
zawaruddin

Route Laravel

Mar 18th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. // ini Router
  2. Route::group(['middleware' => 'web'], function () {
  3.     Route::auth();
  4.     Route::get('/', ['as' => 'dashboard', 'uses' => 'HomeController@index']);
  5.     Route::get('/home', ['as' => 'home', 'uses' => 'HomeController@index']);
  6. });
  7.  
  8. Route::controllers(['auth' => 'Auth\AuthController',
  9.                     'password' => 'Auth\PasswordController', ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement