|
@@ -15,7 +15,7 @@ discard block |
|
|
block discarded – undo |
|
15
|
15
|
public function indexSetting() |
|
16
|
16
|
{ |
|
17
|
17
|
$settings = config('adminetic.caching', true) |
|
18
|
|
- ? (Cache::has('settings') ? Cache::get('settings') : Cache::rememberForever('settings', function () { |
|
|
18
|
+ ? (Cache::has('settings') ? Cache::get('settings') : Cache::rememberForever('settings', function() { |
|
19
|
19
|
return Setting::latest()->get(); |
|
20
|
20
|
})) |
|
21
|
21
|
: Setting::latest()->get(); |
|
@@ -119,7 +119,7 @@ discard block |
|
|
block discarded – undo |
|
119
|
119
|
'string_value' => $value->store('admin/setting', 'public'), |
|
120
|
120
|
]); |
|
121
|
121
|
$image = Image::make($value->getRealPath()); |
|
122
|
|
- $image->save(public_path('storage/' . $setting->string_value)); |
|
|
122
|
+ $image->save(public_path('storage/'.$setting->string_value)); |
|
123
|
123
|
} |
|
124
|
124
|
} |
|
125
|
125
|
} elseif ($setting->getRawOriginal('setting_type') == 2 || $setting->getRawOriginal('setting_type') == 6 || $setting->getRawOriginal('setting_type') == 7) { |
Please login to merge, or discard this patch.