Skip to content

Commit

Permalink
Merge pull request #114 from eduardoarandah/patch-2
Browse files Browse the repository at this point in the history
Update RoleCrudController.php
  • Loading branch information
tabacitu committed Dec 13, 2017
2 parents 0ff9fca + e53b4a4 commit 4e77d64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/Http/Controllers/RoleCrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,15 @@ public function setup()

public function store(StoreRequest $request)
{
//otherwise, changes won't have effect
\Cache::forget('spatie.permission.cache');
return parent::storeCrud();
}

public function update(UpdateRequest $request)
{
//otherwise, changes won't have effect
\Cache::forget('spatie.permission.cache');
return parent::updateCrud();
}
}

0 comments on commit 4e77d64

Please sign in to comment.