1
Following people I am creating a project in Aravel 5.2 I used the auth classes of the Aravel itself.
And I’d like to know how I can be setting up the same for that page /register
is accessed only after the user logs in. Because by default it comes without validation and anyone can access.
My route.php is as follows:
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');
});
It was cool but I came up with another question, when I log in it always directs to Register how do I redirect to /Dashboard for example and only access Register if I call.
– Douglas Salomão
@This is already a different question. Different questions need to be dealt with on different topics. Take a [tour] to better understand how OS-PT works.
– gmsantos
Okay thanks I’ll give a search.
– Douglas Salomão