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
Carbon::now()->addDays(30), // Each Permission expiration assign in 30 days
221
+
);
222
+
```
223
223
224
-
In this example, the `post-create` permission will be assigned to the user and expire after 30 days.
224
+
In this example, the `post-create` permission will be assigned to the user and expire after 30 days.
225
225
226
226
2.**Assign Multiple Permissions with Different Expirations**: If you need to assign multiple permissions with individual expiration dates, pass an associative array where the keys are permission names, and the values are the expiration dates.
The `detachPermissions` method allows you to remove one or multiple permissions from a user. You can specify permissions as an array, a pipe-separated string, a comma-separated string, or a single permission name.
0 commit comments