@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | use Thinktomorrow\Chief\Menu\MenuItem; |
6 | 6 | use Thinktomorrow\Chief\Settings\Setting; |
7 | 7 | |
8 | -$factory->define(User::class, function (Faker\Generator $faker) { |
|
8 | +$factory->define(User::class, function(Faker\Generator $faker) { |
|
9 | 9 | static $password; |
10 | 10 | |
11 | 11 | return [ |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | ]; |
17 | 17 | }); |
18 | 18 | |
19 | -$factory->define(Page::class, function (Faker\Generator $faker) { |
|
19 | +$factory->define(Page::class, function(Faker\Generator $faker) { |
|
20 | 20 | return [ |
21 | 21 | 'morph_key' => 'singles', |
22 | 22 | 'published' => 1, |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | ]; |
28 | 28 | }); |
29 | 29 | |
30 | -$factory->define(MenuItem::class, function (Faker\Generator $faker) { |
|
30 | +$factory->define(MenuItem::class, function(Faker\Generator $faker) { |
|
31 | 31 | return [ |
32 | 32 | 'type' => 'custom', |
33 | 33 | 'label:nl' => 'nieuw label', |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | ]; |
36 | 36 | }); |
37 | 37 | |
38 | -$factory->define(Setting::class, function (Faker\Generator $faker) { |
|
38 | +$factory->define(Setting::class, function(Faker\Generator $faker) { |
|
39 | 39 | return [ |
40 | 40 | ]; |
41 | 41 | }); |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | public function up() |
10 | 10 | { |
11 | - Schema::create('pagesets', function (Blueprint $table) { |
|
11 | + Schema::create('pagesets', function(Blueprint $table) { |
|
12 | 12 | $table->increments('id'); |
13 | 13 | $table->string('key')->unique(); |
14 | 14 | $table->string('action'); |
@@ -8,19 +8,19 @@ |
||
8 | 8 | { |
9 | 9 | public function up() |
10 | 10 | { |
11 | - Schema::table('pages', function (Blueprint $table) { |
|
11 | + Schema::table('pages', function(Blueprint $table) { |
|
12 | 12 | $table->renameColumn('collection', 'morph_key'); |
13 | 13 | }); |
14 | 14 | |
15 | - Schema::table('modules', function (Blueprint $table) { |
|
15 | + Schema::table('modules', function(Blueprint $table) { |
|
16 | 16 | $table->renameColumn('collection', 'morph_key'); |
17 | 17 | }); |
18 | 18 | |
19 | - Schema::table('pages', function (Blueprint $table) { |
|
19 | + Schema::table('pages', function(Blueprint $table) { |
|
20 | 20 | $table->string('morph_key', 255)->change(); |
21 | 21 | }); |
22 | 22 | |
23 | - Schema::table('modules', function (Blueprint $table) { |
|
23 | + Schema::table('modules', function(Blueprint $table) { |
|
24 | 24 | $table->string('morph_key', 255)->change(); |
25 | 25 | }); |
26 | 26 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | public function up() |
10 | 10 | { |
11 | - Schema::create(config('activitylog.table_name'), function (Blueprint $table) { |
|
11 | + Schema::create(config('activitylog.table_name'), function(Blueprint $table) { |
|
12 | 12 | $table->increments('id'); |
13 | 13 | $table->string('log_name')->nullable(); |
14 | 14 | $table->text('description'); |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | public function up() |
10 | 10 | { |
11 | - Schema::create('relations', function (Blueprint $table) { |
|
11 | + Schema::create('relations', function(Blueprint $table) { |
|
12 | 12 | $table->string("parent_type"); |
13 | 13 | $table->unsignedBigInteger("parent_id"); |
14 | 14 | $table->string("child_type"); |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | public function up() |
10 | 10 | { |
11 | - Schema::table('page_translations', function (Blueprint $table) { |
|
11 | + Schema::table('page_translations', function(Blueprint $table) { |
|
12 | 12 | $table->string('seo_keywords')->after('seo_description')->nullable(); |
13 | 13 | }); |
14 | 14 | } |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | { |
9 | 9 | public function up() |
10 | 10 | { |
11 | - Schema::create('pages', function (Blueprint $table) { |
|
11 | + Schema::create('pages', function(Blueprint $table) { |
|
12 | 12 | $table->increments('id'); |
13 | 13 | $table->string('collection', 32)->index()->default('singles'); |
14 | 14 | $table->boolean('published')->default(false); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $table->softDeletes(); |
23 | 23 | }); |
24 | 24 | |
25 | - Schema::create('page_translations', function (Blueprint $table) { |
|
25 | + Schema::create('page_translations', function(Blueprint $table) { |
|
26 | 26 | $table->increments('id'); |
27 | 27 | $table->integer('page_id')->unsigned(); |
28 | 28 | $table->string('locale'); |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | { |
9 | 9 | public function up() |
10 | 10 | { |
11 | - Schema::create('chief_users', function (Blueprint $table) { |
|
11 | + Schema::create('chief_users', function(Blueprint $table) { |
|
12 | 12 | $table->increments('id'); |
13 | 13 | $table->string('firstname'); |
14 | 14 | $table->string('lastname'); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $table->timestamps(); |
21 | 21 | }); |
22 | 22 | |
23 | - Schema::create('chief_password_resets', function (Blueprint $table) { |
|
23 | + Schema::create('chief_password_resets', function(Blueprint $table) { |
|
24 | 24 | $table->string('email')->index(); |
25 | 25 | $table->string('token')->index(); |
26 | 26 | $table->timestamp('created_at')->nullable(); |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | { |
9 | 9 | public function up() |
10 | 10 | { |
11 | - Schema::create('modules', function (Blueprint $table) { |
|
11 | + Schema::create('modules', function(Blueprint $table) { |
|
12 | 12 | $table->increments('id'); |
13 | 13 | $table->unsignedInteger('page_id')->nullable(); |
14 | 14 | $table->string('collection', 32)->index(); |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | $table->foreign('page_id')->references('id')->on('pages')->onDelete('cascade'); |
20 | 20 | }); |
21 | 21 | |
22 | - Schema::create('module_translations', function (Blueprint $table) { |
|
22 | + Schema::create('module_translations', function(Blueprint $table) { |
|
23 | 23 | $table->increments('id'); |
24 | 24 | $table->integer('module_id')->unsigned(); |
25 | 25 | $table->string('locale'); |