@@ -40,9 +40,9 @@ |
||
| 40 | 40 | $id = $this->facility->id ?? ''; |
| 41 | 41 | |
| 42 | 42 | return [ |
| 43 | - 'code' => 'required|max:255|unique:facilities,code,' . $id, |
|
| 43 | + 'code' => 'required|max:255|unique:facilities,code,'.$id, |
|
| 44 | 44 | 'name' => 'required|max:60', |
| 45 | - 'slug' => 'required|max:255|unique:facilities,slug,' . $id, |
|
| 45 | + 'slug' => 'required|max:255|unique:facilities,slug,'.$id, |
|
| 46 | 46 | 'excerpt' => 'required|max:255', |
| 47 | 47 | 'description' => 'nullable|max:10000', |
| 48 | 48 | 'category_id' => 'nullable|numeric', |
@@ -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 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | return [ |
| 43 | 43 | 'name' => 'required|max:255', |
| 44 | - 'slug' => 'required|max:255|unique:projects,slug,' . $id, |
|
| 44 | + 'slug' => 'required|max:255|unique:projects,slug,'.$id, |
|
| 45 | 45 | 'client' => 'required|max:255', |
| 46 | 46 | 'duration' => 'required|max:60', |
| 47 | 47 | 'category' => 'required|max:80', |
@@ -41,9 +41,9 @@ |
||
| 41 | 41 | $id = $this->team->id ?? ''; |
| 42 | 42 | |
| 43 | 43 | return [ |
| 44 | - 'code' => 'required|max:255|unique:teams,code,' . $id, |
|
| 44 | + 'code' => 'required|max:255|unique:teams,code,'.$id, |
|
| 45 | 45 | 'name' => 'required|max:100', |
| 46 | - 'slug' => 'required|max:255|unique:teams,code,' . $id, |
|
| 46 | + 'slug' => 'required|max:255|unique:teams,code,'.$id, |
|
| 47 | 47 | 'designation' => 'required|max:100', |
| 48 | 48 | 'image' => 'sometimes|file|image|max:3000', |
| 49 | 49 | 'phone' => 'nullable', |
@@ -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', |
@@ -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) { |
@@ -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) { |