Add action during login process
问题 I am building a Laravel 7.x. application that will combine both standard authentication (user logs on via form) and API authentication through Sanctum (token based). I want to generate a sanctum API token during successful user authentication. To do that, I need to hook into the login flow. Standard authentication was scaffolded to my application by running php artisan ui vue --auth . When I inspect routes/web.php , I can see only Auth::routes(); which under the hood allegedly generates the