@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::table('pages', function (Blueprint $table) { |
|
| 16 | + Schema::table('pages', function(Blueprint $table) { |
|
| 17 | 17 | $table->integer('order')->default(1)->after('page'); |
| 18 | 18 | }); |
| 19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function down() |
| 27 | 27 | { |
| 28 | - Schema::table('pages', function (Blueprint $table) { |
|
| 28 | + Schema::table('pages', function(Blueprint $table) { |
|
| 29 | 29 | $table->dropColumn('order'); |
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -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 @@ 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 | } |
@@ -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 | } |
@@ -14,13 +14,13 @@ discard block |
||
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | 16 | if (!Schema::hasColumn('users', 'token')) { |
| 17 | - Schema::table('users', function (Blueprint $table) { |
|
| 17 | + Schema::table('users', function(Blueprint $table) { |
|
| 18 | 18 | $table->string('token', 24)->unique()->after('remember_token'); |
| 19 | 19 | }); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | if (!Schema::hasColumn('users', 'active')) { |
| 23 | - Schema::table('users', function (Blueprint $table) { |
|
| 23 | + Schema::table('users', function(Blueprint $table) { |
|
| 24 | 24 | $table->tinyInteger('active')->default(0)->after('token'); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -34,13 +34,13 @@ discard block |
||
| 34 | 34 | public function down() |
| 35 | 35 | { |
| 36 | 36 | if (Schema::hasColumn('users', 'token')) { |
| 37 | - Schema::table('users', function (Blueprint $table) { |
|
| 37 | + Schema::table('users', function(Blueprint $table) { |
|
| 38 | 38 | $table->dropColumn('token'); |
| 39 | 39 | }); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | if (Schema::hasColumn('users', 'active')) { |
| 43 | - Schema::table('users', function (Blueprint $table) { |
|
| 43 | + Schema::table('users', function(Blueprint $table) { |
|
| 44 | 44 | $table->dropColumn('active'); |
| 45 | 45 | }); |
| 46 | 46 | } |
@@ -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_menus'), function (Blueprint $table) { |
|
| 16 | + Schema::create(config('menu.table_prefix') . config('menu.table_name_menus'), function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->timestamps(); |
@@ -27,6 +27,6 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public function down() |
| 29 | 29 | { |
| 30 | - Schema::dropIfExists(config('menu.table_prefix').config('menu.table_name_menus')); |
|
| 30 | + Schema::dropIfExists(config('menu.table_prefix') . config('menu.table_name_menus')); |
|
| 31 | 31 | } |
| 32 | 32 | } |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::table('pages', function (Blueprint $table) { |
|
| 16 | + Schema::table('pages', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('roles')->nullable()->default(null)->after('active'); |
| 18 | 18 | }); |
| 19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function down() |
| 27 | 27 | { |
| 28 | - Schema::table('pages', function (Blueprint $table) { |
|
| 28 | + Schema::table('pages', function(Blueprint $table) { |
|
| 29 | 29 | $table->dropColumn('roles'); |
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::table('page_blocks', function (Blueprint $table) { |
|
| 16 | + Schema::table('page_blocks', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('lang')->nullable()->default(null)->after('order'); |
| 18 | 18 | }); |
| 19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function down() |
| 27 | 27 | { |
| 28 | - Schema::table('page_blocks', function (Blueprint $table) { |
|
| 28 | + Schema::table('page_blocks', function(Blueprint $table) { |
|
| 29 | 29 | $table->dropColumn('lang'); |
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | |
| 39 | 39 | protected function redirectTo() |
| 40 | 40 | { |
| 41 | - return '/'.Auth::user()->roles()->first()->redirect; |
|
| 41 | + return '/' . Auth::user()->roles()->first()->redirect; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |