Replies: 1 comment
-
app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['view','edit']) |
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.
-
How can i pass multiple permission to the can or cannot method in my controller.
this works for a single permission
public function allUser(Request $request) {
abort_if(auth()->user()->can('edit'), 403);
return User::all();
}
How can i pass multiple permission to the can method...
Thanks
Beta Was this translation helpful? Give feedback.
All reactions