@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | { |
9 | 9 | public function up() |
10 | 10 | { |
11 | - Schema::create('settings', function (Blueprint $table) { |
|
11 | + Schema::create('settings', function(Blueprint $table) { |
|
12 | 12 | $table->increments('id'); |
13 | 13 | $table->timestamps(); |
14 | 14 | $table->softDeletes(); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $table->string('section')->nullable()->index(); |
17 | 17 | }); |
18 | 18 | |
19 | - Schema::create('setting_translations', function (Blueprint $table) { |
|
19 | + Schema::create('setting_translations', function(Blueprint $table) { |
|
20 | 20 | createDefaultTranslationsTableFields($table, 'setting'); |
21 | 21 | $table->text('value')->nullable(); |
22 | 22 | }); |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | { |
8 | 8 | public function up() |
9 | 9 | { |
10 | - Schema::create('medias', function (Blueprint $table) { |
|
10 | + Schema::create('medias', function(Blueprint $table) { |
|
11 | 11 | $table->increments('id')->unsigned(); |
12 | 12 | $table->timestamps(); |
13 | 13 | $table->softDeletes(); |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | $table->string('filename')->nullable(); |
20 | 20 | }); |
21 | 21 | |
22 | - Schema::create('mediables', function (Blueprint $table) { |
|
22 | + Schema::create('mediables', function(Blueprint $table) { |
|
23 | 23 | $table->increments('id'); |
24 | 24 | $table->timestamps(); |
25 | 25 | $table->softDeletes(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('blocks', function (Blueprint $table) { |
|
16 | + Schema::create('blocks', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('blockable_id')->nullable()->unsigned(); |
19 | 19 | $table->string('blockable_type')->nullable(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('features', function (Blueprint $table) { |
|
16 | + Schema::create('features', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('featured_id', 36); |
19 | 19 | $table->string('featured_type', 255); |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | { |
8 | 8 | public function up() |
9 | 9 | { |
10 | - Schema::create('files', function (Blueprint $table) { |
|
10 | + Schema::create('files', function(Blueprint $table) { |
|
11 | 11 | $table->increments('id')->unsigned(); |
12 | 12 | $table->timestamps(); |
13 | 13 | $table->softDeletes(); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $table->integer('size')->unsigned(); |
17 | 17 | }); |
18 | 18 | |
19 | - Schema::create('fileables', function (Blueprint $table) { |
|
19 | + Schema::create('fileables', function(Blueprint $table) { |
|
20 | 20 | $table->increments('id'); |
21 | 21 | $table->timestamps(); |
22 | 22 | $table->softDeletes(); |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | { |
8 | 8 | public function up() |
9 | 9 | { |
10 | - Schema::create('users', function (Blueprint $table) { |
|
10 | + Schema::create('users', function(Blueprint $table) { |
|
11 | 11 | createDefaultTableFields($table); |
12 | 12 | $table->string('name'); |
13 | 13 | $table->string('email')->unique(); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $table->rememberToken(); |
17 | 17 | }); |
18 | 18 | |
19 | - Schema::create('password_resets', function (Blueprint $table) { |
|
19 | + Schema::create('password_resets', function(Blueprint $table) { |
|
20 | 20 | $table->string('email')->index(); |
21 | 21 | $table->string('token')->index(); |
22 | 22 | $table->timestamp('created_at')->nullable(); |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | { |
9 | 9 | public function up() |
10 | 10 | { |
11 | - Schema::create('tagged', function (Blueprint $table) { |
|
11 | + Schema::create('tagged', function(Blueprint $table) { |
|
12 | 12 | $table->increments('id'); |
13 | 13 | $table->string('taggable_type'); |
14 | 14 | $table->integer('taggable_id')->unsigned(); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $table->index(['taggable_type', 'taggable_id']); |
17 | 17 | }); |
18 | 18 | |
19 | - Schema::create('tags', function (Blueprint $table) { |
|
19 | + Schema::create('tags', function(Blueprint $table) { |
|
20 | 20 | $table->increments('id'); |
21 | 21 | $table->string('namespace'); |
22 | 22 | $table->string('slug'); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | public function scopeForBucket($query, $bucketKey) |
23 | 23 | { |
24 | - return $query->where('bucket_key', $bucketKey)->get()->map(function ($feature) { |
|
24 | + return $query->where('bucket_key', $bucketKey)->get()->map(function($feature) { |
|
25 | 25 | return $feature->featured; |
26 | 26 | }); |
27 | 27 | } |
@@ -32,12 +32,12 @@ |
||
32 | 32 | public function scopeVisible($query) |
33 | 33 | { |
34 | 34 | if ($this->isFillable('publish_start_date')) { |
35 | - $query->where(function ($query) { |
|
35 | + $query->where(function($query) { |
|
36 | 36 | $query->whereNull('publish_start_date')->orWhere('publish_start_date', '<=', Carbon::now()); |
37 | 37 | }); |
38 | 38 | |
39 | 39 | if ($this->isFillable('publish_end_date')) { |
40 | - $query->where(function ($query) { |
|
40 | + $query->where(function($query) { |
|
41 | 41 | $query->whereNull('publish_end_date')->orWhere('publish_end_date', '>=', Carbon::now()); |
42 | 42 | }); |
43 | 43 | } |