Next I am creating a project in laravel 5.2 I used the auth classes of laravel itself.
And I would like to know how I can be setting it up so that the /register
page is accessed only after the user logs in. Because by default it comes without validation and anyone can access it.
My route.php looks like this:
Route::group(['middleware' => ['web']], function () {
//
Route::get('/', 'Auth\AuthController@getLogin');
});
Route::group(['middleware' => 'web'], function () {
Route::auth();
Route::get('/home', 'HomeController@index');
//Route::get('/register', 'Auth\AuthController@getRegister');
});