Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.85 KB | None | 0 0
  1. Route::group(['prefix' => 'backend'], function () {
  2.     Route::group(['middleware' => 'auth:admin'], function () {
  3.         Route::get('/', 'Admin\DashboardController@index');
  4.     });
  5.  
  6.     // Authentication Routes...
  7.     $this->get('login', 'Admin\Auth\AuthController@showLoginForm');
  8.     $this->post('login', 'Admin\Auth\AuthController@login');
  9.     $this->get('logout', 'Admin\Auth\AuthController@logout');
  10.  
  11.     // Registration Routes...
  12.     $this->get('register', 'Admin\Auth\AuthController@showRegistrationForm');
  13.     $this->post('register', 'Admin\Auth\AuthController@register');
  14.  
  15.     // Password Reset Routes...
  16.     $this->get('password/reset/{token?}', 'Admin\Auth\PasswordController@showResetForm');
  17.     $this->post('password/email', 'Admin\Auth\PasswordController@sendResetLinkEmail');
  18.     $this->post('password/reset', 'Admin\Auth\PasswordController@reset');
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement