@@ -163,7 +163,7 @@ |
||
| 163 | 163 | */ |
| 164 | 164 | protected function registerRoutes() |
| 165 | 165 | { |
| 166 | - Route::group($this->routeConfiguration(), function () { |
|
| 166 | + Route::group($this->routeConfiguration(), function() { |
|
| 167 | 167 | $this->loadRoutesFrom(__DIR__.'/../../routes/web.php'); |
| 168 | 168 | }); |
| 169 | 169 | } |
@@ -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::latest()->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Project::latest()->get(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function indexFacility() |
| 14 | 14 | { |
| 15 | 15 | $facilities = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('facilities') ? Cache::get('facilities') : Cache::rememberForever('facilities', function () { |
|
| 16 | + ? (Cache::has('facilities') ? Cache::get('facilities') : Cache::rememberForever('facilities', function() { |
|
| 17 | 17 | return Facility::orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Facility::orderBy('position')->get(); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function indexVideo() |
| 15 | 15 | { |
| 16 | 16 | $videos = config('adminetic.caching', true) |
| 17 | - ? (Cache::has('videos') ? Cache::get('videos') : Cache::rememberForever('videos', function () { |
|
| 17 | + ? (Cache::has('videos') ? Cache::get('videos') : Cache::rememberForever('videos', function() { |
|
| 18 | 18 | return Video::latest()->get(); |
| 19 | 19 | })) |
| 20 | 20 | : Video::latest()->get(); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function indexService() |
| 15 | 15 | { |
| 16 | 16 | $services = config('adminetic.caching', true) |
| 17 | - ? (Cache::has('services') ? Cache::get('services') : Cache::rememberForever('services', function () { |
|
| 17 | + ? (Cache::has('services') ? Cache::get('services') : Cache::rememberForever('services', function() { |
|
| 18 | 18 | return Service::orderBy('position')->get(); |
| 19 | 19 | })) |
| 20 | 20 | : Service::orderBy('position')->get(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function indexImage() |
| 14 | 14 | { |
| 15 | 15 | $images = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('images') ? Cache::get('images') : Cache::rememberForever('images', function () { |
|
| 16 | + ? (Cache::has('images') ? Cache::get('images') : Cache::rememberForever('images', function() { |
|
| 17 | 17 | return Image::latest()->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Image::latest()->get(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function indexPackage() |
| 14 | 14 | { |
| 15 | 15 | $packages = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('packages') ? Cache::get('packages') : Cache::rememberForever('packages', function () { |
|
| 16 | + ? (Cache::has('packages') ? Cache::get('packages') : Cache::rememberForever('packages', function() { |
|
| 17 | 17 | return Package::latest()->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Package::latest()->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::latest()->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Counter::latest()->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::latest()->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Faq::latest()->get(); |