-
Notifications
You must be signed in to change notification settings - Fork 112
Books example Documentation #22
Comments
As I see it, there are many ways to limit it to the team. You could add a team_id to the books and then bind it to the team and say that any member of the team has access. Or go based on user memberships etc. I would prefer to let developers make those decisions based on their use case. But if it were me with a clean app I would add a team_id column which would let you limit the books to team members. |
So, I see your point. |
Laracogs is intended to be a simple starter kit for various parts of an app along with a powerful CRUD, and some magical Crypto tools. In terms of determining optimal ways of handling the business logic in your app. Thats up to you. You can technically create as many roles as you want. But it may be beneficial to develop your own team roles component, which could dictate those control levels :) |
Posted back on reddit... I figured the solution in my case was a scope. Since my goal is to have 1 team per user (much like a company/employee relationship), this scope worked perfectly. My next task is to figure out how only team owner gets billed, and members don't... |
In the books example, could you add how to limit it to the team.
The text was updated successfully, but these errors were encountered: