@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('packages', function (Blueprint $table) { |
|
16 | + Schema::create('packages', function(Blueprint $table) { |
|
17 | 17 | $table->id(); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->integer('package_time'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('faqs', function (Blueprint $table) { |
|
16 | + Schema::create('faqs', function(Blueprint $table) { |
|
17 | 17 | $table->id(); |
18 | 18 | $table->text('question'); |
19 | 19 | $table->text('answer'); |
@@ -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 | } |
@@ -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 | - Faq::creating(function ($model) { |
|
28 | + Faq::creating(function($model) { |
|
29 | 29 | $model->position = Faq::max('position') + 1; |
30 | 30 | }); |
31 | 31 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -19,15 +19,15 @@ |
||
19 | 19 | { |
20 | 20 | parent::boot(); |
21 | 21 | |
22 | - static::saving(function () { |
|
22 | + static::saving(function() { |
|
23 | 23 | self::cacheKey(); |
24 | 24 | }); |
25 | 25 | |
26 | - static::deleting(function () { |
|
26 | + static::deleting(function() { |
|
27 | 27 | self::cacheKey(); |
28 | 28 | }); |
29 | 29 | |
30 | - Page::creating(function ($model) { |
|
30 | + Page::creating(function($model) { |
|
31 | 31 | $model->position = Page::max('position') + 1; |
32 | 32 | }); |
33 | 33 | } |