Replies: 1 comment
-
Laravel supports that natively. Gate::define('edit_bill', function($user, $bill) {
// complex logic here, whether related to roles/permissions or not
} $user->can('edit_bill', $bill);
// or in blade
@can('edit_bill', $bill); Ref: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i am not sure if it is even a good idea or if it is already doable.
Some permissions are far more than a simple calculation for example:
it would be super helpful if we can have something similar:
Beta Was this translation helpful? Give feedback.
All reactions