@@ -691,7 +691,7 @@ |
||
| 691 | 691 | if (!function_exists('getActionColumn')) { |
| 692 | 692 | function getActionColumn($datatable, $can_edit, $can_delete, $can_restore, $can_force_delete, $trash) |
| 693 | 693 | { |
| 694 | - $datatable->addColumn('action', function ($row) use ($can_edit, $can_delete, $can_restore, $can_force_delete, $trash) { |
|
| 694 | + $datatable->addColumn('action', function($row) use ($can_edit, $can_delete, $can_restore, $can_force_delete, $trash) { |
|
| 695 | 695 | if ($trash) { |
| 696 | 696 | return trashActionLinks($row, $can_restore, $can_force_delete); |
| 697 | 697 | } else { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | cache()->forget($key); |
| 45 | 45 | |
| 46 | 46 | // caching again |
| 47 | - cache()->rememberForever($key, function () use ($query) { |
|
| 47 | + cache()->rememberForever($key, function() use ($query) { |
|
| 48 | 48 | return $query; |
| 49 | 49 | }); |
| 50 | 50 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $key = getCacheKey($slug, $model); |
| 68 | 68 | // caching project if not existing |
| 69 | 69 | if (!cache()->has($key)) { |
| 70 | - cache()->rememberForever($key, function () use ($model, $slug) { |
|
| 70 | + cache()->rememberForever($key, function() use ($model, $slug) { |
|
| 71 | 71 | return $model::active()->where('slug', $slug)->firstOrFail(); |
| 72 | 72 | }); |
| 73 | 73 | } |