|
@@ -13,7 +13,7 @@ |
|
|
block discarded – undo |
|
13
|
13
|
public function indexCategory() |
|
14
|
14
|
{ |
|
15
|
15
|
$categories = config('adminetic.caching', true) |
|
16
|
|
- ? (Cache::has('categories') ? Cache::get('categories') : Cache::rememberForever('categories', function () { |
|
|
16
|
+ ? (Cache::has('categories') ? Cache::get('categories') : Cache::rememberForever('categories', function() { |
|
17
|
17
|
return Category::whereNull('parent_id')->with('childrenCategories')->orderBy('position')->get(); |
|
18
|
18
|
})) |
|
19
|
19
|
: Category::whereNull('parent_id')->with('childrenCategories')->orderBy('position')->get(); |
Please login to merge, or discard this patch.