@@ -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 indexAttribute() |
| 14 | 14 | { |
| 15 | 15 | $attributes = config('coderz.caching', true) |
| 16 | - ? (Cache::has('attributes') ? Cache::get('attributes') : Cache::rememberForever('attributes', function () { |
|
| 16 | + ? (Cache::has('attributes') ? Cache::get('attributes') : Cache::rememberForever('attributes', function() { |
|
| 17 | 17 | return Attribute::orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Attribute::orderBy('position')->get(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function indexPayment() |
| 14 | 14 | { |
| 15 | 15 | $payments = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('payments') ? Cache::get('payments') : Cache::rememberForever('payments', function () { |
|
| 16 | + ? (Cache::has('payments') ? Cache::get('payments') : Cache::rememberForever('payments', function() { |
|
| 17 | 17 | return Payment::orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Payment::orderBy('position')->get(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function indexFeature() |
| 14 | 14 | { |
| 15 | 15 | $features = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('features') ? Cache::get('features') : Cache::rememberForever('features', function () { |
|
| 16 | + ? (Cache::has('features') ? Cache::get('features') : Cache::rememberForever('features', function() { |
|
| 17 | 17 | return Feature::orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Feature::orderBy('position')->get(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function indexDownload() |
| 14 | 14 | { |
| 15 | 15 | $downloads = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('downloads') ? Cache::get('downloads') : Cache::rememberForever('downloads', function () { |
|
| 16 | + ? (Cache::has('downloads') ? Cache::get('downloads') : Cache::rememberForever('downloads', function() { |
|
| 17 | 17 | return Download::orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Download::orderBy('position')->get(); |