@@ -17,15 +17,15 @@ |
||
| 17 | 17 | { |
| 18 | 18 | parent::boot(); |
| 19 | 19 | |
| 20 | - static::saving(function () { |
|
| 20 | + static::saving(function() { |
|
| 21 | 21 | self::cacheKey(); |
| 22 | 22 | }); |
| 23 | 23 | |
| 24 | - static::deleting(function () { |
|
| 24 | + static::deleting(function() { |
|
| 25 | 25 | self::cacheKey(); |
| 26 | 26 | }); |
| 27 | 27 | |
| 28 | - Testimonial::creating(function ($model) { |
|
| 28 | + Testimonial::creating(function($model) { |
|
| 29 | 29 | $model->position = Testimonial::max('position') + 1; |
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -17,15 +17,15 @@ |
||
| 17 | 17 | { |
| 18 | 18 | parent::boot(); |
| 19 | 19 | |
| 20 | - static::saving(function () { |
|
| 20 | + static::saving(function() { |
|
| 21 | 21 | self::cacheKey(); |
| 22 | 22 | }); |
| 23 | 23 | |
| 24 | - static::deleting(function () { |
|
| 24 | + static::deleting(function() { |
|
| 25 | 25 | self::cacheKey(); |
| 26 | 26 | }); |
| 27 | 27 | |
| 28 | - Package::creating(function ($model) { |
|
| 28 | + Package::creating(function($model) { |
|
| 29 | 29 | $model->position = Package::max('position') + 1; |
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('testimonials', function (Blueprint $table) { |
|
| 16 | + Schema::create('testimonials', function(Blueprint $table) { |
|
| 17 | 17 | $table->id(); |
| 18 | 18 | $table->string('code')->unique(); |
| 19 | 19 | $table->string('name'); |
@@ -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(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('blocks', function (Blueprint $table) { |
|
| 16 | + Schema::create('blocks', function(Blueprint $table) { |
|
| 17 | 17 | $table->id(); |
| 18 | 18 | $table->string('code')->unique(); |
| 19 | 19 | $table->string('type'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('features', function (Blueprint $table) { |
|
| 16 | + Schema::create('features', function(Blueprint $table) { |
|
| 17 | 17 | $table->id(); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->text('description'); |
@@ -17,15 +17,15 @@ |
||
| 17 | 17 | { |
| 18 | 18 | parent::boot(); |
| 19 | 19 | |
| 20 | - static::saving(function () { |
|
| 20 | + static::saving(function() { |
|
| 21 | 21 | self::cacheKey(); |
| 22 | 22 | }); |
| 23 | 23 | |
| 24 | - static::deleting(function () { |
|
| 24 | + static::deleting(function() { |
|
| 25 | 25 | self::cacheKey(); |
| 26 | 26 | }); |
| 27 | 27 | |
| 28 | - Feature::creating(function ($model) { |
|
| 28 | + Feature::creating(function($model) { |
|
| 29 | 29 | $model->position = Feature::max('position') + 1; |
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function indexFeature() |
| 15 | 15 | { |
| 16 | 16 | $features = config('adminetic.caching', true) |
| 17 | - ? (Cache::has('features') ? Cache::get('features') : Cache::rememberForever('features', function () { |
|
| 17 | + ? (Cache::has('features') ? Cache::get('features') : Cache::rememberForever('features', function() { |
|
| 18 | 18 | return Feature::latest()->get(); |
| 19 | 19 | })) |
| 20 | 20 | : Feature::latest()->get(); |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | */ |
| 189 | 189 | protected function registerResource() |
| 190 | 190 | { |
| 191 | - if (! config('website.publish_migrations', true)) { |
|
| 191 | + if (!config('website.publish_migrations', true)) { |
|
| 192 | 192 | $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); // Loading Migration Files |
| 193 | 193 | } |
| 194 | 194 | $this->loadViewsFrom(__DIR__.'/../../resources/views', 'website'); // Loading Views Files |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | */ |
| 218 | 218 | protected function registerRoutes() |
| 219 | 219 | { |
| 220 | - Route::group($this->routeConfiguration(), function () { |
|
| 220 | + Route::group($this->routeConfiguration(), function() { |
|
| 221 | 221 | $this->loadRoutesFrom(__DIR__.'/../../routes/web.php'); |
| 222 | 222 | }); |
| 223 | 223 | } |