なにげなーく使っていて、とりあえずログイン関係の処理を全部やってくれているイメージがありました。
改めてちゃんと調べてみたので、メモ。
Auth::routes();と書くことで、
vendor/laravel/framework/src/Illuminate/Routing/Router.php
の1120行目あたりにある、Authメゾットを呼び出している。
public function auth()
{
// Authentication Routes...
$this->get('login', 'Auth\LoginController@showLoginForm')->name('login');
$this->post('login', 'Auth\LoginController@login');
$this->post('logout', 'Auth\LoginController@logout')->name('logout');
// Registration Routes...
$this->get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
$this->post('register', 'Auth\RegisterController@register');
// Password Reset Routes...
$this->get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request');
$this->post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
$this->get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');
$this->post('password/reset', 'Auth\ResetPasswordController@reset');
}
シンプルですが、何気なく使っていたのでちゃんと知れてよかった。