Advertisement
Guest User

routes.php

a guest
May 23rd, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.81 KB | None | 0 0
  1. <?php
  2.  
  3. Route::get('/', [
  4.     'as' => 'home',
  5.     'uses' => 'SiteController@index',
  6. ]);
  7.  
  8. /**
  9.  * For UNAUTHENTICATED users
  10.  */
  11. Route::group(['middleware' => 'guest'], function()
  12. {
  13.     /**
  14.      * Create account (GET)
  15.      */
  16.     Route::get('account/sign-up', [
  17.         'as' => 'sign-up',
  18.         'uses' => 'AccountController@getSignUp',
  19.     ]);
  20.  
  21.     /**
  22.      * Create account (POST)
  23.      */
  24.     Route::post('account/sign-up', [
  25.         'as' => 'sign-up-post',
  26.         'uses' => 'AccountController@postSignUp',
  27.     ]);
  28.  
  29.     /**
  30.      * Activate account (GET)
  31.      */
  32.     Route::get('account/activate/{code}', [
  33.         'as' => 'activate',
  34.         'uses' => 'AccountController@getActivate'
  35.     ]);
  36.  
  37. });
  38.  
  39. /**
  40.  * For AUTHENTICATED users
  41.  */
  42. Route::group(['middleware' => 'auth'], function()
  43. {
  44.  
  45. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement