Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

question focused on relationships between models #122

Closed
dagume opened this issue Sep 11, 2019 · 3 comments
Closed

question focused on relationships between models #122

dagume opened this issue Sep 11, 2019 · 3 comments

Comments

@dagume
Copy link

dagume commented Sep 11, 2019

I am implementing this package in my project but I wish that my login is done with another table called "contacts" as I can modify so that it is not from the "user" table but from the "contacts" table

@SergioFloresG
Copy link

It depends.

If your permission logic starts, validates and / or gets from the "contacts" table, just add the "HasRolesAndPermissions" trait into the model.

@dagume
Copy link
Author

dagume commented Oct 29, 2019

Can I use the "HasRolesAndPermissions" feature on two models at the same time, how do I implement it?

@kaidesu
Copy link
Contributor

kaidesu commented Dec 2, 2019

You totally can 👍 It's just a simple trait that registers the necessary relationships and methods. If it doesn't work for you out of the box, you can reference it for your own model and bring the methods/relationships in yourself.

@kaidesu kaidesu closed this as completed Dec 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants