Hi jimgwhit and thanks for your reply. Can you give an example of such a route in L5? I'm quite new to Laravel... Thanks again!
Solution for your problem :)
Route::get('/login', 'Auth\AuthController@getLogin');
Route::get('/register', 'Auth\AuthController@getRegister');
@stojankukrika is right.
If you are changing the login route, you should also check the "Authenticate" Middleware (line 43) and also change the route to which the user will be redirected when the session expires.
@stojankukrika, thanks for your example, it works but I made it a little shorter with following code:
/*
* Authentication
*/
Route::controllers([
'password' => 'Auth\PasswordController',
'' => 'Auth\AuthController',
]);
Is this a good way to solve this problem?
It's kinda strange that this only works in this order though. When I put the AuthController above the PasswordController the latter no longer works, somebody knows why?
Because if you put it above the PasswordController, that route would catch all urls with the pattern /<anything>
so /password
would also enter the AuthController
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community