ok
Direktori : /home2/selectio/public_html/fms-worksuite/app/Observers/ |
Current File : /home2/selectio/public_html/fms-worksuite/app/Observers/UserPermissionObserver.php |
<?php namespace App\Observers; use App\Models\UserPermission; use Illuminate\Support\Facades\Cache; class UserPermissionObserver { public function saving(UserPermission $permission) { Cache::forget('permission-' . $permission->permission->name . '-' . $permission->user_id); Cache::forget('permission-id-' . $permission->permission->name . '-' . $permission->user_id); } }