@@ -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 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $module->name = 'role'; |
| 38 | 38 | $module->icon = 'lock'; |
| 39 | 39 | $module->model_class = 'Uccello\Core\Models\Role'; |
| 40 | - $module->data = ["package" => "uccello/uccello", "admin" => true, "mandatory" => true]; |
|
| 40 | + $module->data = [ "package" => "uccello/uccello", "admin" => true, "mandatory" => true ]; |
|
| 41 | 41 | $module->save(); |
| 42 | 42 | |
| 43 | 43 | return $module; |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $field->name = 'name'; |
| 68 | 68 | $field->uitype_id = uitype('text')->id; |
| 69 | 69 | $field->displaytype_id = displaytype('everywhere')->id; |
| 70 | - $field->data = ['rules' => 'required']; |
|
| 70 | + $field->data = [ 'rules' => 'required' ]; |
|
| 71 | 71 | $field->sequence = 0; |
| 72 | 72 | $field->block_id = $block->id; |
| 73 | 73 | $field->module_id = $module->id; |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $field->name = 'parent'; |
| 79 | 79 | $field->uitype_id = uitype('entity')->id; |
| 80 | 80 | $field->displaytype_id = displaytype('everywhere')->id; |
| 81 | - $field->data = ['module' => 'role', 'field' => 'name']; |
|
| 81 | + $field->data = [ 'module' => 'role', 'field' => 'name' ]; |
|
| 82 | 82 | $field->sequence = 1; |
| 83 | 83 | $field->block_id = $block->id; |
| 84 | 84 | $field->module_id = $module->id; |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | $field->name = 'description'; |
| 90 | 90 | $field->uitype_id = uitype('textarea')->id; |
| 91 | 91 | $field->displaytype_id = displaytype('everywhere')->id; |
| 92 | - $field->data = ['large' => true]; |
|
| 92 | + $field->data = [ 'large' => true ]; |
|
| 93 | 93 | $field->sequence = 2; |
| 94 | 94 | $field->block_id = $block->id; |
| 95 | 95 | $field->module_id = $module->id; |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | $filter->user_id = null; |
| 105 | 105 | $filter->name = 'filter.all'; |
| 106 | 106 | $filter->type = 'list'; |
| 107 | - $filter->columns = ['id', 'name', 'description', 'parent', 'created_at', 'updated_at']; |
|
| 107 | + $filter->columns = [ 'id', 'name', 'description', 'parent', 'created_at', 'updated_at' ]; |
|
| 108 | 108 | $filter->conditions = null; |
| 109 | 109 | $filter->order_by = null; |
| 110 | 110 | $filter->is_default = true; |