Comments (12)
Very interesting idea and thanks for the link to the rolify. I'll review it and see what can be added without making it too complicated.
from entrust.
I took a longer look at the rolify, not quite sure what it provides without installing it and testing it.
from entrust.
I think I see what you mean. Be able to specify a role or permission against a specific class or object. I think thats a really neat idea, but I think it's beyond the scope of entrust at the moment.
from entrust.
+1
This would be exactly what I need! :)
from entrust.
That would be great. Currently building a CMS that manages multiple sites. Users will have a edit permission but only for a particular site, or multiple sites for example. This feature would be really useful.
from entrust.
👍
from entrust.
Not sure if I follow correctly, but would this satisfy a mult-tenant situation, ie, using 'tenant_id' column?
from entrust.
+1
from entrust.
+1
from entrust.
I had a pressing need for something like this, so I went ahead and implemented it. The pull requests is #245. You will need to migrate your pivot table if you are already running this on your site. If this gets merged, I will port it to L5 as well. As I'm not using L5 at the moment, that wasn't a top priority for me, but I'm happy to give back.
from entrust.
I really like this idea! I searched a lot for a perfect rbac library for Laravel that does support object based permissions, and this would be it.
For me I need specific roles per event. Organisers have their own events which they can edit, but moderators get assigned to certain events, on which they need to perform certain tasks. Having a way of combining permissions with objects would solve this matter completely.
from entrust.
+1
from entrust.
Related Issues (20)
- error when use middleware in api file
- Attaching Permission to Role does not refresh cached permissions HOT 3
- Migrate error HOT 1
- cannot add foreign key constaint HOT 3
- A small mistake in the comments
- Deleting a user while failing a relation constraint removes the role_user record
- Please support laravel 6 HOT 26
- Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\User given, called in C:\composer\project\vendor\laravel\framework\src\Illuminate\Auth\SessionGuard.php on line 378
- Method Handle does not exist
- This repo is dead HOT 1
- Not supported in laravel 6 HOT 10
- supprt for laravel 6 successful HOT 2
- Redirect user to unauthorized page
- A fork to support Laravel 7/8
- Support for Laravel 6 7 8 HOT 2
- Discussion about the future of this package HOT 5
- Laravel 8 login error HOT 1
- Message: Class 'Jenssegers\Blade\Blade' not found
- how automatically redis key generated on my server ?
- Support for Laravel 11 and update PHP to version 8.
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 entrust.