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
Copy file name to clipboardExpand all lines: docs/advanced-usage/seeding.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ weight: 2
7
7
8
8
You may discover that it is best to flush this package's cache **BEFORE seeding, to avoid cache conflict errors**.
9
9
10
-
And if you use the `WithoutModelEvents` trait in your seeders, flush it **AFTER seeding as well**.
10
+
And if you use the `WithoutModelEvents` trait in your seeders, flush it **AFTER creating any roles/permissions as well, before assigning or granting them.**.
11
11
12
12
```php
13
13
// reset cached roles and permissions
@@ -40,6 +40,10 @@ class RolesAndPermissionsSeeder extends Seeder
0 commit comments