Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- Route::get('/', [
- 'as' => 'home',
- 'uses' => 'SiteController@index',
- ]);
- /**
- * For UNAUTHENTICATED users
- */
- Route::group(['middleware' => 'guest'], function()
- {
- /**
- * Create account (GET)
- */
- Route::get('account/sign-up', [
- 'as' => 'sign-up',
- 'uses' => 'AccountController@getSignUp',
- ]);
- /**
- * Create account (POST)
- */
- Route::post('account/sign-up', [
- 'as' => 'sign-up-post',
- 'uses' => 'AccountController@postSignUp',
- ]);
- /**
- * Activate account (GET)
- */
- Route::get('account/activate/{code}', [
- 'as' => 'activate',
- 'uses' => 'AccountController@getActivate'
- ]);
- });
- /**
- * For AUTHENTICATED users
- */
- Route::group(['middleware' => 'auth'], function()
- {
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement