@@ -15,7 +15,7 @@ |
||
| 15 | 15 | public function indexGallery() |
| 16 | 16 | { |
| 17 | 17 | $galleries = config('adminetic.caching', true) |
| 18 | - ? (Cache::has('galleries') ? Cache::get('galleries') : Cache::rememberForever('galleries', function () { |
|
| 18 | + ? (Cache::has('galleries') ? Cache::get('galleries') : Cache::rememberForever('galleries', function() { |
|
| 19 | 19 | return Gallery::latest()->get(); |
| 20 | 20 | })) |
| 21 | 21 | : Gallery::latest()->get(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function indexTeam() |
| 14 | 14 | { |
| 15 | 15 | $teams = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('teams') ? Cache::get('teams') : Cache::rememberForever('teams', function () { |
|
| 16 | + ? (Cache::has('teams') ? Cache::get('teams') : Cache::rememberForever('teams', function() { |
|
| 17 | 17 | return Team::orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Team::orderBy('position')->get(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function indexPage() |
| 14 | 14 | { |
| 15 | 15 | $pages = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('pages') ? Cache::get('pages') : Cache::rememberForever('pages', function () { |
|
| 16 | + ? (Cache::has('pages') ? Cache::get('pages') : Cache::rememberForever('pages', function() { |
|
| 17 | 17 | return Page::orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Page::orderBy('position')->get(); |
@@ -18,11 +18,11 @@ |
||
| 18 | 18 | { |
| 19 | 19 | parent::boot(); |
| 20 | 20 | |
| 21 | - static::saving(function () { |
|
| 21 | + static::saving(function() { |
|
| 22 | 22 | self::cacheKey(); |
| 23 | 23 | }); |
| 24 | 24 | |
| 25 | - static::deleting(function () { |
|
| 25 | + static::deleting(function() { |
|
| 26 | 26 | self::cacheKey(); |
| 27 | 27 | }); |
| 28 | 28 | } |
@@ -18,11 +18,11 @@ |
||
| 18 | 18 | { |
| 19 | 19 | parent::boot(); |
| 20 | 20 | |
| 21 | - static::saving(function () { |
|
| 21 | + static::saving(function() { |
|
| 22 | 22 | self::cacheKey(); |
| 23 | 23 | }); |
| 24 | 24 | |
| 25 | - static::deleting(function () { |
|
| 25 | + static::deleting(function() { |
|
| 26 | 26 | self::cacheKey(); |
| 27 | 27 | }); |
| 28 | 28 | } |
@@ -18,11 +18,11 @@ |
||
| 18 | 18 | { |
| 19 | 19 | parent::boot(); |
| 20 | 20 | |
| 21 | - static::saving(function () { |
|
| 21 | + static::saving(function() { |
|
| 22 | 22 | self::cacheKey(); |
| 23 | 23 | }); |
| 24 | 24 | |
| 25 | - static::deleting(function () { |
|
| 25 | + static::deleting(function() { |
|
| 26 | 26 | self::cacheKey(); |
| 27 | 27 | }); |
| 28 | 28 | } |
@@ -18,11 +18,11 @@ |
||
| 18 | 18 | { |
| 19 | 19 | parent::boot(); |
| 20 | 20 | |
| 21 | - static::saving(function () { |
|
| 21 | + static::saving(function() { |
|
| 22 | 22 | self::cacheKey(); |
| 23 | 23 | }); |
| 24 | 24 | |
| 25 | - static::deleting(function () { |
|
| 25 | + static::deleting(function() { |
|
| 26 | 26 | self::cacheKey(); |
| 27 | 27 | }); |
| 28 | 28 | } |
@@ -18,11 +18,11 @@ |
||
| 18 | 18 | { |
| 19 | 19 | parent::boot(); |
| 20 | 20 | |
| 21 | - static::saving(function () { |
|
| 21 | + static::saving(function() { |
|
| 22 | 22 | self::cacheKey(); |
| 23 | 23 | }); |
| 24 | 24 | |
| 25 | - static::deleting(function () { |
|
| 25 | + static::deleting(function() { |
|
| 26 | 26 | self::cacheKey(); |
| 27 | 27 | }); |
| 28 | 28 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function indexTemplate() |
| 14 | 14 | { |
| 15 | 15 | $templates = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('templates') ? Cache::get('templates') : Cache::rememberForever('templates', function () { |
|
| 16 | + ? (Cache::has('templates') ? Cache::get('templates') : Cache::rememberForever('templates', function() { |
|
| 17 | 17 | return Template::latest()->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Template::latest()->get(); |