@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public function up() |
19 | 19 | { |
20 | - Schema::create($this->tablePrefix . 'menus', function (Blueprint $table) { |
|
20 | + Schema::create($this->tablePrefix.'menus', function(Blueprint $table) { |
|
21 | 21 | $table->increments('id'); |
22 | 22 | $table->unsignedInteger('domain_id')->nullable(); |
23 | 23 | $table->unsignedInteger('user_id')->nullable(); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | // Foreign keys |
29 | 29 | $table->foreign('domain_id') |
30 | - ->references('id')->on($this->tablePrefix . 'domains') |
|
30 | + ->references('id')->on($this->tablePrefix.'domains') |
|
31 | 31 | ->onDelete('cascade'); |
32 | 32 | |
33 | 33 | $table->foreign('user_id') |
@@ -147,6 +147,6 @@ discard block |
||
147 | 147 | */ |
148 | 148 | public function down() |
149 | 149 | { |
150 | - Schema::dropIfExists($this->tablePrefix . 'menus'); |
|
150 | + Schema::dropIfExists($this->tablePrefix.'menus'); |
|
151 | 151 | } |
152 | 152 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create($this->tablePrefix . 'profiles', function (Blueprint $table) { |
|
16 | + Schema::create($this->tablePrefix.'profiles', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->text('description')->nullable(); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | // Foreign keys |
25 | 25 | $table->foreign('domain_id') |
26 | - ->references('id')->on($this->tablePrefix . 'domains') |
|
26 | + ->references('id')->on($this->tablePrefix.'domains') |
|
27 | 27 | ->onDelete('cascade'); |
28 | 28 | }); |
29 | 29 | } |
@@ -35,6 +35,6 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public function down() |
37 | 37 | { |
38 | - Schema::dropIfExists($this->tablePrefix . 'profiles'); |
|
38 | + Schema::dropIfExists($this->tablePrefix.'profiles'); |
|
39 | 39 | } |
40 | 40 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create($this->tablePrefix . 'roles', function (Blueprint $table) { |
|
16 | + Schema::create($this->tablePrefix.'roles', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->text('description')->nullable(); |
@@ -24,10 +24,10 @@ discard block |
||
24 | 24 | |
25 | 25 | // Foreign keys |
26 | 26 | $table->foreign('parent_id') |
27 | - ->references('id')->on($this->tablePrefix . 'roles'); |
|
27 | + ->references('id')->on($this->tablePrefix.'roles'); |
|
28 | 28 | |
29 | 29 | $table->foreign('domain_id') |
30 | - ->references('id')->on($this->tablePrefix . 'domains') |
|
30 | + ->references('id')->on($this->tablePrefix.'domains') |
|
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 . 'roles'); |
|
42 | + Schema::dropIfExists($this->tablePrefix.'roles'); |
|
43 | 43 | } |
44 | 44 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create($this->tablePrefix . 'permissions', function (Blueprint $table) { |
|
16 | + Schema::create($this->tablePrefix.'permissions', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->unsignedInteger('module_id'); |
19 | 19 | $table->unsignedInteger('profile_id'); |
@@ -22,19 +22,19 @@ discard block |
||
22 | 22 | |
23 | 23 | // Foreign keys |
24 | 24 | $table->foreign('module_id') |
25 | - ->references('id')->on($this->tablePrefix . 'modules') |
|
25 | + ->references('id')->on($this->tablePrefix.'modules') |
|
26 | 26 | ->onDelete('cascade'); |
27 | 27 | |
28 | 28 | $table->foreign('profile_id') |
29 | - ->references('id')->on($this->tablePrefix . 'profiles') |
|
29 | + ->references('id')->on($this->tablePrefix.'profiles') |
|
30 | 30 | ->onDelete('cascade'); |
31 | 31 | |
32 | 32 | $table->foreign('capability_id') |
33 | - ->references('id')->on($this->tablePrefix . 'capabilities') |
|
33 | + ->references('id')->on($this->tablePrefix.'capabilities') |
|
34 | 34 | ->onDelete('cascade'); |
35 | 35 | |
36 | 36 | // Unique keys |
37 | - $table->unique(['module_id', 'profile_id', 'capability_id']); |
|
37 | + $table->unique([ 'module_id', 'profile_id', 'capability_id' ]); |
|
38 | 38 | }); |
39 | 39 | } |
40 | 40 | |
@@ -45,6 +45,6 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function down() |
47 | 47 | { |
48 | - Schema::dropIfExists($this->tablePrefix . 'permissions'); |
|
48 | + Schema::dropIfExists($this->tablePrefix.'permissions'); |
|
49 | 49 | } |
50 | 50 | } |
@@ -14,14 +14,14 @@ discard block |
||
14 | 14 | */ |
15 | 15 | public function up() |
16 | 16 | { |
17 | - Schema::create($this->tablePrefix . 'uitypes', function (Blueprint $table) { |
|
17 | + Schema::create($this->tablePrefix.'uitypes', function(Blueprint $table) { |
|
18 | 18 | $table->increments('id'); |
19 | 19 | $table->string('name'); |
20 | 20 | $table->string('class'); |
21 | 21 | $table->timestamps(); |
22 | 22 | |
23 | 23 | // Unique keys |
24 | - $table->unique(['name']); |
|
24 | + $table->unique([ 'name' ]); |
|
25 | 25 | }); |
26 | 26 | |
27 | 27 | $this->addUitypes(); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function down() |
36 | 36 | { |
37 | - Schema::dropIfExists($this->tablePrefix . 'uitypes'); |
|
37 | + Schema::dropIfExists($this->tablePrefix.'uitypes'); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
@@ -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; |