@@ -80,7 +80,7 @@ |
||
| 80 | 80 | ][$attribute] : null; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - // Accessors |
|
| 83 | + // Accessors |
|
| 84 | 84 | public function getImageAttribute() |
| 85 | 85 | { |
| 86 | 86 | return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
@@ -20,11 +20,11 @@ discard block |
||
| 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 | } |
@@ -83,11 +83,11 @@ discard block |
||
| 83 | 83 | // Accessors |
| 84 | 84 | public function getImageAttribute() |
| 85 | 85 | { |
| 86 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 86 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | public function getIconImageAttribute() |
| 90 | 90 | { |
| 91 | - return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
| 91 | + return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
| 92 | 92 | } |
| 93 | 93 | } |
@@ -19,11 +19,11 @@ 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 | } |
@@ -50,6 +50,6 @@ discard block |
||
| 50 | 50 | // Accessors |
| 51 | 51 | public function getImagesAttribute() |
| 52 | 52 | { |
| 53 | - return ! is_null($this->getMedia('images')) ? $this->getMedia('images') : null; |
|
| 53 | + return !is_null($this->getMedia('images')) ? $this->getMedia('images') : null; |
|
| 54 | 54 | } |
| 55 | 55 | } |