@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | public function indexCounter() |
| 14 | 14 | { |
| 15 | 15 | $counters = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('counters') ? Cache::get('counters') : Cache::rememberForever('counters', function () { |
|
| 16 | + ? (Cache::has('counters') ? Cache::get('counters') : Cache::rememberForever('counters', function() { |
|
| 17 | 17 | return Counter::latest()->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Counter::latest()->get(); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | 'icon' => request()->icon->store('website/counter', 'public'), |
| 69 | 69 | ]); |
| 70 | 70 | $image = Image::make(request()->file('icon')->getRealPath()); |
| 71 | - $image->save(public_path('storage/' . $counter->icon)); |
|
| 71 | + $image->save(public_path('storage/'.$counter->icon)); |
|
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | } |