JosephSilber / bouncer

Laravel Eloquent roles and abilities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: How can I get certain model Instance's users with ability 'update' ?

greeto opened this issue · comments

I've:

  • User
  • Model: Project
  • I'm doing: $user->allow('update', $project);

The Question:
How can I get all users that related to the specific project? The idea is to do something like Github contributes. so I'm adding each user to the Model(Project)

Hello. Did you maybe solve this ?