@@ -19,15 +19,15 @@ discard block |
||
| 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 | - Facility::creating(function ($model) { |
|
| 30 | + Facility::creating(function($model) { |
|
| 31 | 31 | $model->position = Facility::max('position') + 1; |
| 32 | 32 | }); |
| 33 | 33 | } |
@@ -58,10 +58,10 @@ discard block |
||
| 58 | 58 | // Accessors |
| 59 | 59 | public function getNetworkIconImageAttribute() |
| 60 | 60 | { |
| 61 | - return isset($this->icon_image) ? url('storage/' . $this->icon_image) : null; |
|
| 61 | + return isset($this->icon_image) ? url('storage/'.$this->icon_image) : null; |
|
| 62 | 62 | } |
| 63 | 63 | public function getNetworkImageAttribute() |
| 64 | 64 | { |
| 65 | - return isset($this->image) ? url('storage/' . $this->image) : null; |
|
| 65 | + return isset($this->image) ? url('storage/'.$this->image) : null; |
|
| 66 | 66 | } |
| 67 | 67 | } |
@@ -19,15 +19,15 @@ discard block |
||
| 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 | - Service::creating(function ($model) { |
|
| 30 | + Service::creating(function($model) { |
|
| 31 | 31 | $model->position = Service::max('position') + 1; |
| 32 | 32 | }); |
| 33 | 33 | } |
@@ -58,10 +58,10 @@ discard block |
||
| 58 | 58 | // Accessors |
| 59 | 59 | public function getNetworkIconImageAttribute() |
| 60 | 60 | { |
| 61 | - return isset($this->icon_image) ? url('storage/' . $this->icon_image) : null; |
|
| 61 | + return isset($this->icon_image) ? url('storage/'.$this->icon_image) : null; |
|
| 62 | 62 | } |
| 63 | 63 | public function getNetworkImageAttribute() |
| 64 | 64 | { |
| 65 | - return isset($this->image) ? url('storage/' . $this->image) : null; |
|
| 65 | + return isset($this->image) ? url('storage/'.$this->image) : null; |
|
| 66 | 66 | } |
| 67 | 67 | } |
@@ -25,11 +25,11 @@ discard block |
||
| 25 | 25 | { |
| 26 | 26 | parent::boot(); |
| 27 | 27 | |
| 28 | - static::saving(function () { |
|
| 28 | + static::saving(function() { |
|
| 29 | 29 | self::cacheKey(); |
| 30 | 30 | }); |
| 31 | 31 | |
| 32 | - static::deleting(function () { |
|
| 32 | + static::deleting(function() { |
|
| 33 | 33 | self::cacheKey(); |
| 34 | 34 | }); |
| 35 | 35 | } |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | public function getNetworkImageAttribute() |
| 77 | 77 | { |
| 78 | - return isset($this->image) ? url('storage/' . $this->image) : null; |
|
| 78 | + return isset($this->image) ? url('storage/'.$this->image) : null; |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | // Relation |