Comments (4)
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.
from builder.
So, I see your point.
User can belong to many teams. I guess I can block team page to a "team leader", and create a new role for team member.
Now, I guess I need to add a scope of sorts. Perhaps if user is not admin, then select Books from any of his teams. Do you see a more logical way for me in using your tool?
from builder.
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 :)
from builder.
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...
from builder.
Related Issues (20)
- How to create foreign key constraint using crudmaker? HOT 1
- Problem when generating a form with @form_maker_table directive and Semantic-Ui HOT 1
- Problem with bootstrap HOT 2
- App name/namespace not honoured HOT 2
- Cannot login when via web when using api guards and vice versa HOT 4
- composer install: symfony console error on laravel 5.6 HOT 2
- What happen with Laracogs? HOT 4
- Error during install HOT 1
- Fail to retrieve Activitity by user HOT 1
- Error on install
- How to provide token when adding records via AJAX? {"error":"token_not_provided"} HOT 4
- Missing lines from LogsController.php HOT 2
- MySQL specific query on Blade template, it will fail with other DB engine HOT 1
- DB::select('SHOW VARIABLES ...') in /admin/dashboard.blade.php not postgres compatible HOT 2
- Change to socialite documentation HOT 1
- No emails folder in views HOT 1
- Bootstrap step in instructs results in broken webpack.mix.js
- Starter user registration is broken HOT 1
- 5.8 support? HOT 4
- Any 6.0+ love ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from builder.