@@ -18,11 +18,11 @@ |
||
| 18 | 18 | { |
| 19 | 19 | parent::boot(); |
| 20 | 20 | |
| 21 | - static::saving(function () { |
|
| 21 | + static::saving(function() { |
|
| 22 | 22 | self::cacheKey(); |
| 23 | 23 | }); |
| 24 | 24 | |
| 25 | - static::deleting(function () { |
|
| 25 | + static::deleting(function() { |
|
| 26 | 26 | self::cacheKey(); |
| 27 | 27 | }); |
| 28 | 28 | } |
@@ -13,7 +13,7 @@ |
||
| 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(); |
@@ -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 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(); |
@@ -13,7 +13,7 @@ |
||
| 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(); |
@@ -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::orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Package::orderBy('position')->get(); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function indexTestimonial() |
| 15 | 15 | { |
| 16 | 16 | $testimonials = config('adminetic.caching', true) |
| 17 | - ? (Cache::has('testimonials') ? Cache::get('testimonials') : Cache::rememberForever('testimonials', function () { |
|
| 17 | + ? (Cache::has('testimonials') ? Cache::get('testimonials') : Cache::rememberForever('testimonials', function() { |
|
| 18 | 18 | return Testimonial::orderBy('position')->get(); |
| 19 | 19 | })) |
| 20 | 20 | : Testimonial::orderBy('position')->get(); |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | */ |
| 195 | 195 | protected function registerResource() |
| 196 | 196 | { |
| 197 | - if (! config('website.publish_migrations', true)) { |
|
| 197 | + if (!config('website.publish_migrations', true)) { |
|
| 198 | 198 | $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); // Loading Migration Files |
| 199 | 199 | } |
| 200 | 200 | $this->loadViewsFrom(__DIR__.'/../../resources/views', 'website'); // Loading Views Files |
@@ -223,12 +223,12 @@ discard block |
||
| 223 | 223 | */ |
| 224 | 224 | protected function registerRoutes() |
| 225 | 225 | { |
| 226 | - Route::group($this->routeConfiguration(), function () { |
|
| 226 | + Route::group($this->routeConfiguration(), function() { |
|
| 227 | 227 | $this->loadRoutesFrom(__DIR__.'/../../routes/web.php'); |
| 228 | 228 | }); |
| 229 | 229 | |
| 230 | 230 | if (config('website.website_api_end_points', true)) { |
| 231 | - Route::group($this->apiRouteConfiguration(), function () { |
|
| 231 | + Route::group($this->apiRouteConfiguration(), function() { |
|
| 232 | 232 | $this->loadRoutesFrom(__DIR__.'/../../routes/api.php'); |
| 233 | 233 | }); |
| 234 | 234 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function up(): void |
| 13 | 13 | { |
| 14 | - Schema::create('taggables', function (Blueprint $table) { |
|
| 14 | + Schema::create('taggables', function(Blueprint $table) { |
|
| 15 | 15 | $table->id(); |
| 16 | 16 | $table->unsignedBigInteger('tag_id'); |
| 17 | 17 | $table->unsignedBigInteger('taggable_id'); |