Support the ongoing development of Laravel.io →
Authorization Passport

I am using Laravel Passport (Authorize code grant). When I redirect url to authorize url 'http://passport-app.test/oauth/authorize' , it ask for a email and password.

But, I want to use email and password from 'admin' table not from 'users' table. I have created a custom guard for that. But, the login page only authenticates users from 'users' table.

is there a way that I can make authentication use 'admin' table?

I appreciate any help.

Last updated by @amitleuva1987 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.