php - laravel 5.3 new Auth::routes() -


recently start use laravel 5.3 write blog, have question after run php artisan make:auth

when run this, generate routes in web.php

this code in it:

auth::routes();  route::get('/home', 'homecontroller@index'); 

then run php artisan route:list, find lots of actions, logincontroller@login...

but didn't find these actions in app\http\controllers\auth, these?

and auth::routes() stand for, can't find routes auth.

i need help, thank answer question

auth::routes() helper class helps generate routes required user authentication. can browse code here https://github.com/laravel/framework/blob/5.3/src/illuminate/routing/router.php instead.

here routes

// 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'); $this->post('password/email', 'auth\forgotpasswordcontroller@sendresetlinkemail'); $this->get('password/reset/{token}', 'auth\resetpasswordcontroller@showresetform'); $this->post('password/reset', 'auth\resetpasswordcontroller@reset'); 

Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -