@@ -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 | } |
@@ -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 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | protected function prepareForValidation(): void |
| 22 | 22 | { |
| 23 | 23 | $this->merge([ |
| 24 | - 'slug' => ! is_null($this->name) ? Str::slug($this->name) : null, |
|
| 24 | + 'slug' => !is_null($this->name) ? Str::slug($this->name) : null, |
|
| 25 | 25 | ]); |
| 26 | 26 | } |
| 27 | 27 | |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | { |
| 24 | 24 | $this->merge([ |
| 25 | 25 | 'root_parent_id' => $this->getMainCategory($this->category->parent_id ?? null), |
| 26 | - 'slug' => ! is_null($this->name) ? Str::slug($this->name) : null, |
|
| 26 | + 'slug' => !is_null($this->name) ? Str::slug($this->name) : null, |
|
| 27 | 27 | 'meta_name' => $this->category->meta_name ?? $this->meta_name ?? $this->name ?? null, |
| 28 | 28 | 'meta_description' => $this->category->meta_description ?? $this->meta_description ?? $this->excerpt ?? null, |
| 29 | 29 | ]); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | protected function prepareForValidation(): void |
| 23 | 23 | { |
| 24 | 24 | $this->merge([ |
| 25 | - 'slug' => ! is_null($this->name) ? Str::slug($this->name) : null, |
|
| 25 | + 'slug' => !is_null($this->name) ? Str::slug($this->name) : null, |
|
| 26 | 26 | 'meta_name' => $this->post->meta_name ?? $this->meta_name ?? $this->name ?? null, |
| 27 | 27 | 'meta_description' => $this->post->meta_description ?? $this->meta_description ?? $this->excerpt ?? null, |
| 28 | 28 | 'user_id' => Auth::user()->id, |