본문 바로가기
개발/라라벨 Laravel

Laravel 에서 Auth 관련 Router

by 언제나초심. 2020. 9. 2.
반응형

참고할만한 링크

* https://medium.com/@panjeh/laravel-auth-routes-email-verification-reset-password-authentication-registration-routes-fb82b3337150

 

Laravel Auth::routes() Email verification Reset password Authentication Registration routes

Auth::routes() is a helper class that helps you generate all the routes required for user authentication

medium.com

글을 읽고 있었는데, 최근엔 위치가 바뀐 것 같아서 기록해둔다.

/vendor/laravel/ui/src/AuthRouteMethods.php

을 살펴보면, 이에 대한 내용이 있다.

일단, 여기서 확인 가능한 옵션은 login, logout, register, reset, confirm, verify 를 볼 수 있다.

route 설정에서 (routes/web.php) 에서 Auth::routes(['register' => false, 'verify'=> true]); 와 같은 식으로 기능을 on/off 할 수 있다.

반응형