@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function run() |
| 15 | 15 | { |
| 16 | - $permissions = \DB::table('permissions')->whereIn('model', ['reports']); |
|
| 16 | + $permissions = \DB::table('permissions')->whereIn('model', ['reports']); |
|
| 17 | 17 | \DB::table('groups_permissions')->whereIn('permission_id', $permissions->pluck('id'))->delete(); |
| 18 | 18 | $permissions->delete(); |
| 19 | 19 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * Assign the permissions to the admin group. |
| 23 | 23 | */ |
| 24 | - \DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['reports'])->each(function ($permission) use ($adminGroupId) { |
|
| 24 | + \DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['reports'])->each(function($permission) use ($adminGroupId) { |
|
| 25 | 25 | \DB::table('groups_permissions')->insert( |
| 26 | 26 | [ |
| 27 | 27 | 'permission_id' => $permission->id, |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * Assign the permissions to the admin group. |
| 23 | 23 | */ |
| 24 | - \DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['settings', 'logs'])->each(function ($permission) use ($adminGroupId) { |
|
| 24 | + \DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['settings', 'logs'])->each(function($permission) use ($adminGroupId) { |
|
| 25 | 25 | \DB::table('groups_permissions')->insert( |
| 26 | 26 | [ |
| 27 | 27 | 'permission_id' => $permission->id, |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | if ($this->cacheConfig && $this->cacheConfig == 'cache') |
| 56 | 56 | { |
| 57 | 57 | $page = \Request::get('page') ?? '1'; |
| 58 | - $cacheKey = $name . $page . \Session::get('locale') . serialize($arguments); |
|
| 58 | + $cacheKey = $name.$page.\Session::get('locale').serialize($arguments); |
|
| 59 | 59 | return $this->cache->tags([$this->model])->rememberForever($cacheKey, function() use ($arguments, $name) { |
| 60 | 60 | return call_user_func_array([$this->repo, $name], $arguments); |
| 61 | 61 | }); |