@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | public function up() |
18 | 18 | { |
19 | - Schema::create($this->tablePrefix . 'tabs', function (Blueprint $table) { |
|
19 | + Schema::create($this->tablePrefix.'tabs', function(Blueprint $table) { |
|
20 | 20 | $table->increments('id'); |
21 | 21 | $table->unsignedInteger('module_id'); |
22 | 22 | $table->string('label'); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | // Foreign keys |
29 | 29 | $table->foreign('module_id') |
30 | - ->references('id')->on($this->tablePrefix . 'modules') |
|
30 | + ->references('id')->on($this->tablePrefix.'modules') |
|
31 | 31 | ->onDelete('cascade'); |
32 | 32 | }); |
33 | 33 | } |
@@ -39,6 +39,6 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function down() |
41 | 41 | { |
42 | - Schema::dropIfExists($this->tablePrefix . 'tabs'); |
|
42 | + Schema::dropIfExists($this->tablePrefix.'tabs'); |
|
43 | 43 | } |
44 | 44 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create($this->tablePrefix . 'filters', function (Blueprint $table) { |
|
16 | + Schema::create($this->tablePrefix.'filters', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->unsignedInteger('module_id'); |
19 | 19 | $table->unsignedInteger('domain_id')->nullable(); |
@@ -29,11 +29,11 @@ discard block |
||
29 | 29 | |
30 | 30 | // Foreign keys |
31 | 31 | $table->foreign('module_id') |
32 | - ->references('id')->on($this->tablePrefix . 'modules') |
|
32 | + ->references('id')->on($this->tablePrefix.'modules') |
|
33 | 33 | ->onDelete('cascade'); |
34 | 34 | |
35 | 35 | $table->foreign('domain_id') |
36 | - ->references('id')->on($this->tablePrefix . 'domains') |
|
36 | + ->references('id')->on($this->tablePrefix.'domains') |
|
37 | 37 | ->onDelete('cascade'); |
38 | 38 | |
39 | 39 | $table->foreign('user_id') |
@@ -49,6 +49,6 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function down() |
51 | 51 | { |
52 | - Schema::dropIfExists($this->tablePrefix . 'filters'); |
|
52 | + Schema::dropIfExists($this->tablePrefix.'filters'); |
|
53 | 53 | } |
54 | 54 | } |
@@ -59,7 +59,7 @@ |
||
59 | 59 | $user->first_name = null; |
60 | 60 | $user->last_name = 'Admin'; |
61 | 61 | $user->email = '[email protected]'; |
62 | - $user->password = Hash::make( 'admin'); |
|
62 | + $user->password = Hash::make('admin'); |
|
63 | 63 | $user->is_admin = true; |
64 | 64 | $user->domain_id = Domain::first()->id; |
65 | 65 | $user->save(); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $module->name = 'home'; |
32 | 32 | $module->icon = 'home'; |
33 | 33 | $module->model_class = null; |
34 | - $module->data = ["package" => "uccello/uccello", "menu" => 'uccello.index', "mandatory" => true]; |
|
34 | + $module->data = [ "package" => "uccello/uccello", "menu" => 'uccello.index', "mandatory" => true ]; |
|
35 | 35 | $module->save(); |
36 | 36 | |
37 | 37 | return $module; |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create($this->tablePrefix . 'domains', function (Blueprint $table) { |
|
16 | + Schema::create($this->tablePrefix.'domains', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('slug'); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | // Foreign keys |
27 | 27 | $table->foreign('parent_id') |
28 | - ->references('id')->on($this->tablePrefix . 'domains'); |
|
28 | + ->references('id')->on($this->tablePrefix.'domains'); |
|
29 | 29 | }); |
30 | 30 | } |
31 | 31 | |
@@ -36,6 +36,6 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public function down() |
38 | 38 | { |
39 | - Schema::dropIfExists($this->tablePrefix . 'domains'); |
|
39 | + Schema::dropIfExists($this->tablePrefix.'domains'); |
|
40 | 40 | } |
41 | 41 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create($this->tablePrefix . 'fields', function (Blueprint $table) { |
|
16 | + Schema::create($this->tablePrefix.'fields', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->unsignedInteger('module_id')->comment('Decrease queries'); |
19 | 19 | $table->unsignedInteger('block_id'); |
@@ -26,18 +26,18 @@ discard block |
||
26 | 26 | |
27 | 27 | // Foreign keys |
28 | 28 | $table->foreign('module_id') |
29 | - ->references('id')->on($this->tablePrefix . 'modules') |
|
29 | + ->references('id')->on($this->tablePrefix.'modules') |
|
30 | 30 | ->onDelete('cascade'); |
31 | 31 | |
32 | 32 | $table->foreign('block_id') |
33 | - ->references('id')->on($this->tablePrefix . 'blocks') |
|
33 | + ->references('id')->on($this->tablePrefix.'blocks') |
|
34 | 34 | ->onDelete('cascade'); |
35 | 35 | |
36 | 36 | $table->foreign('uitype_id') |
37 | - ->references('id')->on($this->tablePrefix . 'uitypes'); |
|
37 | + ->references('id')->on($this->tablePrefix.'uitypes'); |
|
38 | 38 | |
39 | 39 | $table->foreign('displaytype_id') |
40 | - ->references('id')->on($this->tablePrefix . 'displaytypes'); |
|
40 | + ->references('id')->on($this->tablePrefix.'displaytypes'); |
|
41 | 41 | }); |
42 | 42 | } |
43 | 43 | |
@@ -48,6 +48,6 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function down() |
50 | 50 | { |
51 | - Schema::dropIfExists($this->tablePrefix . 'fields'); |
|
51 | + Schema::dropIfExists($this->tablePrefix.'fields'); |
|
52 | 52 | } |
53 | 53 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create($this->tablePrefix . 'profiles_roles', function (Blueprint $table) { |
|
16 | + Schema::create($this->tablePrefix.'profiles_roles', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->unsignedInteger('profile_id'); |
19 | 19 | $table->unsignedInteger('role_id'); |
@@ -21,15 +21,15 @@ discard block |
||
21 | 21 | |
22 | 22 | // Foreign keys |
23 | 23 | $table->foreign('profile_id') |
24 | - ->references('id')->on($this->tablePrefix . 'profiles') |
|
24 | + ->references('id')->on($this->tablePrefix.'profiles') |
|
25 | 25 | ->onDelete('cascade'); |
26 | 26 | |
27 | 27 | $table->foreign('role_id') |
28 | - ->references('id')->on($this->tablePrefix . 'roles') |
|
28 | + ->references('id')->on($this->tablePrefix.'roles') |
|
29 | 29 | ->onDelete('cascade'); |
30 | 30 | |
31 | 31 | // Unique keys |
32 | - $table->unique(['profile_id', 'role_id']); |
|
32 | + $table->unique([ 'profile_id', 'role_id' ]); |
|
33 | 33 | }); |
34 | 34 | } |
35 | 35 | |
@@ -40,6 +40,6 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function down() |
42 | 42 | { |
43 | - Schema::dropIfExists($this->tablePrefix . 'profiles_roles'); |
|
43 | + Schema::dropIfExists($this->tablePrefix.'profiles_roles'); |
|
44 | 44 | } |
45 | 45 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | public function up() |
18 | 18 | { |
19 | - Schema::create($this->tablePrefix . 'links', function (Blueprint $table) { |
|
19 | + Schema::create($this->tablePrefix.'links', function(Blueprint $table) { |
|
20 | 20 | $table->increments('id'); |
21 | 21 | $table->unsignedInteger('module_id'); |
22 | 22 | $table->string('label'); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | // Foreign keys |
31 | 31 | $table->foreign('module_id') |
32 | - ->references('id')->on($this->tablePrefix . 'modules') |
|
32 | + ->references('id')->on($this->tablePrefix.'modules') |
|
33 | 33 | ->onDelete('cascade'); |
34 | 34 | }); |
35 | 35 | } |
@@ -41,6 +41,6 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public function down() |
43 | 43 | { |
44 | - Schema::dropIfExists($this->tablePrefix . 'links'); |
|
44 | + Schema::dropIfExists($this->tablePrefix.'links'); |
|
45 | 45 | } |
46 | 46 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create($this->tablePrefix . 'modules', function (Blueprint $table) { |
|
16 | + Schema::create($this->tablePrefix.'modules', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('icon')->nullable(); |
@@ -30,6 +30,6 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function down() |
32 | 32 | { |
33 | - Schema::dropIfExists($this->tablePrefix . 'modules'); |
|
33 | + Schema::dropIfExists($this->tablePrefix.'modules'); |
|
34 | 34 | } |
35 | 35 | } |