AuthController using AuthenticatesAndRegistersUsers trait
it again uses AuthenticatesUsers trait
so getLogin methos you will find
Illuminate\Foundation\Auth\AuthenticatesUsers
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I am trying to advance the built in Authentication system. I want to be able to do the following
I should be able to do the work as long as I know where to go to modify existing code and understand the existing code
Here is my routes.php content
// login routes
Route::get('auth/login', array(
'as' => 'auth_login_getLogin',
'uses' => 'Auth\AuthController@getLogin'
));
Route::post('auth/login', array(
'as' => 'auth_login_postLogin',
'uses' => 'Auth\AuthController@postLogin'
));
Route::get('auth/logout', array(
'as' => 'auth_logout_getLogout',
'uses' => 'Auth\AuthController@getLogout'
));
// Registration routes...
Route::get('auth/register', array(
'as' => 'auth_register_getRegister',
'uses' => 'Auth\AuthController@getRegister'
));
Route::post('auth/register', array(
'as' => 'auth_register_postRegister',
'uses' => 'Auth\AuthController@postRegister'
));
// Password reset link request routes...
Route::get('password/email', array(
'as' => 'password_email_getEmail',
'uses' => 'Auth\PasswordController@getEmail'
));
Route::post('password/email', array(
'as' => 'password_email_postEmail',
'uses' => 'Auth\PasswordController@postEmail'
));
// Password reset routes...
Route::get('password/reset/{token}', array(
'as' => 'password_reset_getReset',
'uses' => 'Auth\PasswordController@getReset'
));
Route::post('password/reset', array(
'as' => 'password_reset_postReset',
'uses' => 'Auth\PasswordController@postReset'
));
the first route aka "auth_login_getLogin" tells me that the code that will be executed should be in the following controller '\app\Http\Controllers\Auth\AuthController.php' I should be able to find a method called getLogin() where I can modify.
However, when I open the 'AuthController.php' file I only see 2 methods create() and valodator()
Where would I find the getLogin(), postLogin(), getLogout() method?
Please or to participate in this conversation.