@@ -120,15 +120,15 @@ discard block |
||
| 120 | 120 | { |
| 121 | 121 | // Publish Config File |
| 122 | 122 | $this->publishes([ |
| 123 | - __DIR__ . '/../../config/website.php' => config_path('website.php'), |
|
| 123 | + __DIR__.'/../../config/website.php' => config_path('website.php'), |
|
| 124 | 124 | ], 'website-config'); |
| 125 | 125 | // Publish View Files |
| 126 | 126 | $this->publishes([ |
| 127 | - __DIR__ . '/../../resources/views' => resource_path('views/vendor/adminetic/plugin/website'), |
|
| 127 | + __DIR__.'/../../resources/views' => resource_path('views/vendor/adminetic/plugin/website'), |
|
| 128 | 128 | ], 'website-views'); |
| 129 | 129 | // Publish Migration Files |
| 130 | 130 | $this->publishes([ |
| 131 | - __DIR__ . '/../../database/migrations' => database_path('migrations'), |
|
| 131 | + __DIR__.'/../../database/migrations' => database_path('migrations'), |
|
| 132 | 132 | ], 'website-migrations'); |
| 133 | 133 | } |
| 134 | 134 | |
@@ -139,8 +139,8 @@ discard block |
||
| 139 | 139 | */ |
| 140 | 140 | protected function registerResource() |
| 141 | 141 | { |
| 142 | - $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations'); // Loading Migration Files |
|
| 143 | - $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'website'); // Loading Views Files |
|
| 142 | + $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); // Loading Migration Files |
|
| 143 | + $this->loadViewsFrom(__DIR__.'/../../resources/views', 'website'); // Loading Views Files |
|
| 144 | 144 | $this->registerRoutes(); |
| 145 | 145 | } |
| 146 | 146 | |
@@ -163,8 +163,8 @@ discard block |
||
| 163 | 163 | */ |
| 164 | 164 | protected function registerRoutes() |
| 165 | 165 | { |
| 166 | - Route::group($this->routeConfiguration(), function () { |
|
| 167 | - $this->loadRoutesFrom(__DIR__ . '/../../routes/web.php'); |
|
| 166 | + Route::group($this->routeConfiguration(), function() { |
|
| 167 | + $this->loadRoutesFrom(__DIR__.'/../../routes/web.php'); |
|
| 168 | 168 | }); |
| 169 | 169 | } |
| 170 | 170 | |
@@ -14,7 +14,7 @@ discard block |
||
| 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::latest()->get(); |
| 19 | 19 | })) |
| 20 | 20 | : Client::latest()->get(); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | 'image' => request()->image->store('website/client', 'public'), |
| 69 | 69 | ]); |
| 70 | 70 | $image = Image::make(request()->file('image')->getRealPath()); |
| 71 | - $image->save(public_path('storage/' . $client->image)); |
|
| 71 | + $image->save(public_path('storage/'.$client->image)); |
|
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | } |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | public function indexEvent() |
| 15 | 15 | { |
| 16 | 16 | $events = config('adminetic.caching', true) |
| 17 | - ? (Cache::has('events') ? Cache::get('events') : Cache::rememberForever('events', function () { |
|
| 17 | + ? (Cache::has('events') ? Cache::get('events') : Cache::rememberForever('events', function() { |
|
| 18 | 18 | return Event::latest()->get(); |
| 19 | 19 | })) |
| 20 | 20 | : Event::latest()->get(); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | if (request()->image) { |
| 68 | 68 | $thumbnails = [ |
| 69 | - 'storage' => 'website/event/' . validImageFolder($event->id, 'event'), |
|
| 69 | + 'storage' => 'website/event/'.validImageFolder($event->id, 'event'), |
|
| 70 | 70 | 'width' => '1200', |
| 71 | 71 | 'height' => '630', |
| 72 | 72 | 'quality' => '100', |
@@ -13,7 +13,7 @@ discard block |
||
| 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(); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | if (request()->image) { |
| 66 | 66 | $dimension = $this->calculateDimention($image, $request); |
| 67 | 67 | $thumbnails = [ |
| 68 | - 'storage' => 'website/image/' . validImageFolder($image->type, 'image'), |
|
| 68 | + 'storage' => 'website/image/'.validImageFolder($image->type, 'image'), |
|
| 69 | 69 | 'width' => $dimension['width'], |
| 70 | 70 | 'height' => $dimension['height'], |
| 71 | 71 | 'quality' => '70', |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | public function indexFacility() |
| 15 | 15 | { |
| 16 | 16 | $facilities = config('adminetic.caching', true) |
| 17 | - ? (Cache::has('facilities') ? Cache::get('facilities') : Cache::rememberForever('facilities', function () { |
|
| 17 | + ? (Cache::has('facilities') ? Cache::get('facilities') : Cache::rememberForever('facilities', function() { |
|
| 18 | 18 | return Facility::orderBy('position')->get(); |
| 19 | 19 | })) |
| 20 | 20 | : Facility::orderBy('position')->get(); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | 'icon_image' => request()->icon_image->store('website/facility/image', 'public'), |
| 70 | 70 | ]); |
| 71 | 71 | $image = Image::make(request()->file('icon_image')->getRealPath()); |
| 72 | - $image->save(public_path('storage/' . $facility->icon_image)); |
|
| 72 | + $image->save(public_path('storage/'.$facility->icon_image)); |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | if (request()->image) { |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | public function indexPage() |
| 14 | 14 | { |
| 15 | 15 | $pages = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('pages') ? Cache::get('pages') : Cache::rememberForever('pages', function () { |
|
| 16 | + ? (Cache::has('pages') ? Cache::get('pages') : Cache::rememberForever('pages', function() { |
|
| 17 | 17 | return Page::orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Page::orderBy('position')->get(); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | { |
| 66 | 66 | if (request()->image) { |
| 67 | 67 | $thumbnails = [ |
| 68 | - 'storage' => 'website/page/' . validImageFolder($page->type, 'post'), |
|
| 68 | + 'storage' => 'website/page/'.validImageFolder($page->type, 'post'), |
|
| 69 | 69 | 'width' => '1200', |
| 70 | 70 | 'height' => '630', |
| 71 | 71 | 'quality' => '90', |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | public function indexTeam() |
| 14 | 14 | { |
| 15 | 15 | $teams = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('teams') ? Cache::get('teams') : Cache::rememberForever('teams', function () { |
|
| 16 | + ? (Cache::has('teams') ? Cache::get('teams') : Cache::rememberForever('teams', function() { |
|
| 17 | 17 | return Team::orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Team::orderBy('position')->get(); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | { |
| 65 | 65 | if (request()->image) { |
| 66 | 66 | $thumbnails = [ |
| 67 | - 'storage' => 'website/team/' . validImageFolder($team->name, 'default'), |
|
| 67 | + 'storage' => 'website/team/'.validImageFolder($team->name, 'default'), |
|
| 68 | 68 | 'width' => '600', |
| 69 | 69 | 'height' => '400', |
| 70 | 70 | 'quality' => '90', |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | public function indexGallery() |
| 16 | 16 | { |
| 17 | 17 | $galleries = config('adminetic.caching', true) |
| 18 | - ? (Cache::has('galleries') ? Cache::get('galleries') : Cache::rememberForever('galleries', function () { |
|
| 18 | + ? (Cache::has('galleries') ? Cache::get('galleries') : Cache::rememberForever('galleries', function() { |
|
| 19 | 19 | return Gallery::latest()->get(); |
| 20 | 20 | })) |
| 21 | 21 | : Gallery::latest()->get(); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | // Multi Image Upload With Thumbnail |
| 86 | 86 | $multiple = [ |
| 87 | - 'storage' => 'website/gallery/' . validImageFolder($gallery->name, 'gallery'), |
|
| 87 | + 'storage' => 'website/gallery/'.validImageFolder($gallery->name, 'gallery'), |
|
| 88 | 88 | 'width' => '600', |
| 89 | 89 | 'height' => '600', |
| 90 | 90 | 'quality' => '70', |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | public function indexService() |
| 16 | 16 | { |
| 17 | 17 | $services = config('adminetic.caching', true) |
| 18 | - ? (Cache::has('services') ? Cache::get('services') : Cache::rememberForever('services', function () { |
|
| 18 | + ? (Cache::has('services') ? Cache::get('services') : Cache::rememberForever('services', function() { |
|
| 19 | 19 | return Service::orderBy('position')->get(); |
| 20 | 20 | })) |
| 21 | 21 | : Service::orderBy('position')->get(); |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | 'icon_image' => request()->icon_image->store('website/service/image', 'public'), |
| 71 | 71 | ]); |
| 72 | 72 | $image = Image::make(request()->file('icon_image')->getRealPath()); |
| 73 | - $image->save(public_path('storage/' . $service->icon_image)); |
|
| 73 | + $image->save(public_path('storage/'.$service->icon_image)); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | if (request()->image) { |