You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$user->doesntHavePermission(['edit-user', 'create-post'], true); // false, user does have create-post permission
171
175
```
172
176
173
177
You can have as many `Role`s as you want for each `User` and vice versa. Also, you can have as many direct `Permissions`s as you want for each `User` and vice versa.
174
178
175
-
The `Laratrust` class has shortcuts to both `hasPermission()` and `hasRole()` for the currently logged in user:
179
+
The `Laratrust` class has shortcuts to `hasPermission()` and `doesntHavePermission()` and `hasRole()` for the currently logged in user:
0 commit comments