Skip to content

Commit

Permalink
Merge pull request #20 from pcrubianoa/patch-1
Browse files Browse the repository at this point in the history
Update PermissionSeed.php
  • Loading branch information
PovilasKorop committed Dec 10, 2018
2 parents f44f9c9 + aba8619 commit 2befc71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions database/seeds/PermissionSeed.php
Expand Up @@ -12,6 +12,9 @@ class PermissionSeed extends Seeder
*/
public function run()
{
Artisan::call('cache:clear');
app()[\Spatie\Permission\PermissionRegistrar::class]->forgetCachedPermissions();

Permission::create(['name' => 'users_manage']);
}
}

0 comments on commit 2befc71

Please sign in to comment.