@@ -20,15 +20,15 @@ |
||
20 | 20 | { |
21 | 21 | parent::boot(); |
22 | 22 | |
23 | - static::saving(function () { |
|
23 | + static::saving(function() { |
|
24 | 24 | self::cacheKey(); |
25 | 25 | }); |
26 | 26 | |
27 | - static::deleting(function () { |
|
27 | + static::deleting(function() { |
|
28 | 28 | self::cacheKey(); |
29 | 29 | }); |
30 | 30 | |
31 | - Facility::creating(function ($model) { |
|
31 | + Facility::creating(function($model) { |
|
32 | 32 | $model->position = Facility::max('position') + 1; |
33 | 33 | }); |
34 | 34 | } |
@@ -20,15 +20,15 @@ |
||
20 | 20 | { |
21 | 21 | parent::boot(); |
22 | 22 | |
23 | - static::saving(function () { |
|
23 | + static::saving(function() { |
|
24 | 24 | self::cacheKey(); |
25 | 25 | }); |
26 | 26 | |
27 | - static::deleting(function () { |
|
27 | + static::deleting(function() { |
|
28 | 28 | self::cacheKey(); |
29 | 29 | }); |
30 | 30 | |
31 | - Service::creating(function ($model) { |
|
31 | + Service::creating(function($model) { |
|
32 | 32 | $model->position = Service::max('position') + 1; |
33 | 33 | }); |
34 | 34 | } |
@@ -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 | } |
@@ -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 | } |