Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pirmax's avatar

How to change the redirection to login page on Laravel Passport ?

Hey,

I search to update the login page redirection when the user is on http://localhost/oauth/authorize URL.

I don't want modify the default login page by Laravel Breeze (/login & /register), but just add a new intermediate login page, only for Laravel Passport.

Middleware Authenticate.php is not called during the loading oauth/authorize.

Thanks. Maxence.

0 likes
3 replies
martinbean's avatar

@pirmax An /oauth/authorize endpoint is not Breeze? That’s OAuth. That’s going to be Passport.

Maybe explain what it is you’re actually trying to do here?

Snapey's avatar

when I go to /apple/fritter I want to see apple identification. I don't want to see orange/peel or orange/squash, although some oranges will still need to access the basket. After, the user should be sent to apple/pie

merry christmas

pirmax's avatar

In fact, I want a login page for connecting to the dashboard (web guard), and a login page only for the "web2" guard.

For example: Dashboard login : /login Passport login : /auth/login

Thanks, And merry Christmas.

Please or to participate in this conversation.