Laravel 12: A Middleware to enable Fortify to work with multiple guards

Laravel Fortify can only work with the web guard. Some things work, when more than 1 guard is configured, but GET /settings/password-confirm and some more routes do not. Here is a middleware approach that authenticates the user against multiple guards. Change files accordingly. app/Providers/FortifyServiceProvider.php Add a function configurePasswordConfirmation() to the boot() method, that validates the […]

Read More… from Laravel 12: A Middleware to enable Fortify to work with multiple guards