Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending Sentinel - Laravel module pattern #532

Open
quentingosset opened this issue May 4, 2020 · 0 comments
Open

Extending Sentinel - Laravel module pattern #532

quentingosset opened this issue May 4, 2020 · 0 comments

Comments

@quentingosset
Copy link

Hi, guys!
I'm coming to you because I have a little problem I can't solve. To start, I develop my application as a module here are the 2 main modules that are the cause of my problem.
-User
-Vendor

Here is a brief explanation of my problem:
When a seller registers on my site, he registers as a user, he can add items. When he adds an item, his id as well as the product id is inserted in a products_vendor table. From here my problem begins, I have created a products relationship that links my users with the products they own. Knowing that I develop in modules, I would like to allow the simple extension of certain functions such as "products()" so that when I call the Basic User module, it has the function when the module is activated.
I have tested the following method: https://github.com/cartalyst/sentinel/wiki/Extending-Sentinel but this method replaces the User entity with the one provided and the one I provide has only my products() function.

Do you have an idea of how I can solve my problem?

Yours sincerely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant