Replies: 4 comments 9 replies
-
What database table are your Client models being stored in? Does it make a difference if you set |
Beta Was this translation helpful? Give feedback.
-
I'm trying the clients table Morph Map I have heard of but don't understand. |
Beta Was this translation helpful? Give feedback.
-
I wonder if it's as simple as setting the morph class for the model? |
Beta Was this translation helpful? Give feedback.
-
I tried seperate tables with the Client Model Extending the User Model. |
Beta Was this translation helpful? Give feedback.
-
The User model is extended to a Client Model
class Client extends User
I want to use different policies for each.
Laravel 11
v6 permissions
standard migration, just id , No uuid
I am using this in both Model hoping that would be helpful, not sure if I need both:
protected function getDefaultGuardName(): string { return 'web'; }
protected $guard_name = 'web';
Client is unable to login with a Client Model with the entry for the /App/Models/Clients
but after I manually edit the record to
/App/Models/User
the client can loginI can Assign the Role to the Client Model but it is not honored.
Do I need an entry in auth.php under providers?
Beta Was this translation helpful? Give feedback.
All reactions