@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function up(): void |
13 | 13 | { |
14 | - Schema::create(config('website.table_prefix', 'website').'_'.'posts', function (Blueprint $table) { |
|
14 | + Schema::create(config('website.table_prefix', 'website').'_'.'posts', function(Blueprint $table) { |
|
15 | 15 | $table->id(); |
16 | 16 | $table->string('name'); |
17 | 17 | $table->string('slug'); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function up(): void |
13 | 13 | { |
14 | - Schema::create(config('website.table_prefix', 'website').'_'.'packages', function (Blueprint $table) { |
|
14 | + Schema::create(config('website.table_prefix', 'website').'_'.'packages', function(Blueprint $table) { |
|
15 | 15 | $table->id(); |
16 | 16 | $table->string('slug'); |
17 | 17 | $table->string('name'); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function up(): void |
13 | 13 | { |
14 | - Schema::create(config('website.table_prefix', 'website').'_'.'categories', function (Blueprint $table) { |
|
14 | + Schema::create(config('website.table_prefix', 'website').'_'.'categories', function(Blueprint $table) { |
|
15 | 15 | $table->id(); |
16 | 16 | $table->string('slug'); |
17 | 17 | $table->string('name'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create(config('website.table_prefix', 'website').'_'.'messages', function (Blueprint $table) { |
|
16 | + Schema::create(config('website.table_prefix', 'website').'_'.'messages', function(Blueprint $table) { |
|
17 | 17 | $table->id(); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('email')->nullable(); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function up(): void |
13 | 13 | { |
14 | - Schema::create(config('website.table_prefix', 'website').'_'.'testimonials', function (Blueprint $table) { |
|
14 | + Schema::create(config('website.table_prefix', 'website').'_'.'testimonials', function(Blueprint $table) { |
|
15 | 15 | $table->id(); |
16 | 16 | $table->string('name'); |
17 | 17 | $table->string('email')->nullable(); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | protected function prepareForValidation(): void |
20 | 20 | { |
21 | 21 | $this->merge([ |
22 | - 'slug' => ! is_null($this->name) ? Str::slug($this->name) : null, |
|
22 | + 'slug' => !is_null($this->name) ? Str::slug($this->name) : null, |
|
23 | 23 | 'meta_name' => $this->popup->meta_name ?? $this->meta_name ?? $this->name ?? null, |
24 | 24 | 'meta_description' => $this->popup->meta_description ?? $this->meta_description ?? $this->excerpt ?? null, |
25 | 25 | ]); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create(config('website.table_prefix', 'website').'_'.'applications', function (Blueprint $table) { |
|
16 | + Schema::create(config('website.table_prefix', 'website').'_'.'applications', function(Blueprint $table) { |
|
17 | 17 | $table->id(); |
18 | 18 | $table->unsignedBigInteger('career_id')->nullable(); |
19 | 19 | $table->foreign('career_id')->references('id')->on(config('website.table_prefix', 'website').'_'.'careers')->onDelete('cascade'); |
@@ -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 | } |
@@ -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 | } |