Skip to content

Commit 2befc71

Browse files
authored
Merge pull request #20 from pcrubianoa/patch-1
Update PermissionSeed.php
2 parents f44f9c9 + aba8619 commit 2befc71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

database/seeds/PermissionSeed.php

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ class PermissionSeed extends Seeder
1212
*/
1313
public function run()
1414
{
15+
Artisan::call('cache:clear');
16+
app()[\Spatie\Permission\PermissionRegistrar::class]->forgetCachedPermissions();
17+
1518
Permission::create(['name' => 'users_manage']);
1619
}
1720
}

0 commit comments

Comments
 (0)