@@ -13,7 +13,7 @@ |
||
13 | 13 | public function indexPopup() |
14 | 14 | { |
15 | 15 | $popups = config('adminetic.caching', true) |
16 | - ? (Cache::has('popups') ? Cache::get('popups') : Cache::rememberForever('popups', function () { |
|
16 | + ? (Cache::has('popups') ? Cache::get('popups') : Cache::rememberForever('popups', function() { |
|
17 | 17 | return Popup::orderBy('position')->get(); |
18 | 18 | })) |
19 | 19 | : Popup::orderBy('position')->get(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | public function indexFaq() |
14 | 14 | { |
15 | 15 | $faqs = config('adminetic.caching', true) |
16 | - ? (Cache::has('faqs') ? Cache::get('faqs') : Cache::rememberForever('faqs', function () { |
|
16 | + ? (Cache::has('faqs') ? Cache::get('faqs') : Cache::rememberForever('faqs', function() { |
|
17 | 17 | return Faq::orderBy('position')->get(); |
18 | 18 | })) |
19 | 19 | : Faq::orderBy('position')->get(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | public function indexGallery() |
14 | 14 | { |
15 | 15 | $galleries = config('adminetic.caching', true) |
16 | - ? (Cache::has('galleries') ? Cache::get('galleries') : Cache::rememberForever('galleries', function () { |
|
16 | + ? (Cache::has('galleries') ? Cache::get('galleries') : Cache::rememberForever('galleries', function() { |
|
17 | 17 | return Gallery::orderBy('position')->get(); |
18 | 18 | })) |
19 | 19 | : Gallery::orderBy('position')->get(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | public function indexProcess() |
14 | 14 | { |
15 | 15 | $processes = config('adminetic.caching', true) |
16 | - ? (Cache::has('processes') ? Cache::get('processes') : Cache::rememberForever('processes', function () { |
|
16 | + ? (Cache::has('processes') ? Cache::get('processes') : Cache::rememberForever('processes', function() { |
|
17 | 17 | return Process::orderBy('position')->get(); |
18 | 18 | })) |
19 | 19 | : Process::orderBy('position')->get(); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | public function indexClient() |
15 | 15 | { |
16 | 16 | $clients = config('adminetic.caching', true) |
17 | - ? (Cache::has('clients') ? Cache::get('clients') : Cache::rememberForever('clients', function () { |
|
17 | + ? (Cache::has('clients') ? Cache::get('clients') : Cache::rememberForever('clients', function() { |
|
18 | 18 | return Client::orderBy('position')->get(); |
19 | 19 | })) |
20 | 20 | : Client::orderBy('position')->get(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | public function indexProject() |
14 | 14 | { |
15 | 15 | $projects = config('adminetic.caching', true) |
16 | - ? (Cache::has('projects') ? Cache::get('projects') : Cache::rememberForever('projects', function () { |
|
16 | + ? (Cache::has('projects') ? Cache::get('projects') : Cache::rememberForever('projects', function() { |
|
17 | 17 | return Project::orderBy('position')->get(); |
18 | 18 | })) |
19 | 19 | : Project::orderBy('position')->get(); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | public function indexPost() |
16 | 16 | { |
17 | 17 | $posts = config('adminetic.caching', true) |
18 | - ? (Cache::has('posts') ? Cache::get('posts') : Cache::rememberForever('posts', function () { |
|
18 | + ? (Cache::has('posts') ? Cache::get('posts') : Cache::rememberForever('posts', function() { |
|
19 | 19 | return Post::orderBy('position')->get(); |
20 | 20 | })) |
21 | 21 | : Post::orderBy('position')->get(); |
@@ -13,7 +13,7 @@ |
||
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::orderBy('position')->get(); |
18 | 18 | })) |
19 | 19 | : Counter::orderBy('position')->get(); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | public function mount() |
13 | 13 | { |
14 | - $this->headline_news = auth()->user()->notifications->filter(function ($n) { |
|
14 | + $this->headline_news = auth()->user()->notifications->filter(function($n) { |
|
15 | 15 | return Carbon::now()->isSameDay($n->created_at); |
16 | 16 | }); |
17 | 17 | } |