@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('roles', function (Blueprint $table) { |
|
16 | + Schema::table('roles', function(Blueprint $table) { |
|
17 | 17 | $table->string('redirect')->default('dashboard')->after('guard_name'); |
18 | 18 | }); |
19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function down() |
27 | 27 | { |
28 | - Schema::table('roles', function (Blueprint $table) { |
|
28 | + Schema::table('roles', function(Blueprint $table) { |
|
29 | 29 | $table->dropColumn('redirect'); |
30 | 30 | }); |
31 | 31 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('resources', function (Blueprint $table) { |
|
16 | + Schema::create('resources', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('slug')->unique(); |
19 | 19 | $table->longText('json'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('forms', function (Blueprint $table) { |
|
16 | + Schema::create('forms', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('title'); |
19 | 19 | $table->string('slug'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('page_blocks', function (Blueprint $table) { |
|
16 | + Schema::create('page_blocks', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('page_id'); |
19 | 19 | $table->string('name'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('sites', function (Blueprint $table) { |
|
16 | + Schema::create('sites', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('slug'); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('repeaters', function (Blueprint $table) { |
|
16 | + Schema::table('repeaters', function(Blueprint $table) { |
|
17 | 17 | $table->softDeletes(); |
18 | 18 | }); |
19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function down() |
27 | 27 | { |
28 | - Schema::table('repeaters', function (Blueprint $table) { |
|
28 | + Schema::table('repeaters', function(Blueprint $table) { |
|
29 | 29 | $table->dropSoftDeletes(); |
30 | 30 | }); |
31 | 31 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('form_entries', function (Blueprint $table) { |
|
16 | + Schema::create('form_entries', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('slug'); |
19 | 19 | $table->longText('entry'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('redirects', function (Blueprint $table) { |
|
16 | + Schema::create('redirects', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('slug')->unique(); |
19 | 19 | $table->longText('to'); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create(config('menu.table_prefix').config('menu.table_name_items'), function (Blueprint $table) { |
|
16 | + Schema::create(config('menu.table_prefix') . config('menu.table_name_items'), function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('label'); |
19 | 19 | $table->string('link'); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $table->integer('depth')->default(0); |
25 | 25 | $table->timestamps(); |
26 | 26 | |
27 | - $table->foreign('menu')->references('id')->on(config('menu.table_prefix').config('menu.table_name_menus')) |
|
27 | + $table->foreign('menu')->references('id')->on(config('menu.table_prefix') . config('menu.table_name_menus')) |
|
28 | 28 | ->onDelete('cascade') |
29 | 29 | ->onUpdate('cascade'); |
30 | 30 | }); |
@@ -37,6 +37,6 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function down() |
39 | 39 | { |
40 | - Schema::dropIfExists(config('menu.table_prefix').config('menu.table_name_items')); |
|
40 | + Schema::dropIfExists(config('menu.table_prefix') . config('menu.table_name_items')); |
|
41 | 41 | } |
42 | 42 | } |