Laravel Auth related

/config/auth.php

Config different “guard” for authentication and each of them has a “provider”. This provider map to either a database table or eloquent model.

Example:

Usage:

Auth::routes() 流程

https://www.kancloud.cn/hongjh/laravel/288380

Assigning Middleware To Routes

Usage:

In controller