@@ -8,8 +8,7 @@ |
||
8 | 8 | */ |
9 | 9 | public function up() |
10 | 10 | { |
11 | - Capsule::schema()->create('rights', function($table) |
|
12 | - { |
|
11 | + Capsule::schema()->create('rights', function($table) { |
|
13 | 12 | $table->increments('id'); |
14 | 13 | $table->string('name')->unique(); |
15 | 14 | $table->string('description'); |
@@ -8,8 +8,7 @@ |
||
8 | 8 | */ |
9 | 9 | public function up() |
10 | 10 | { |
11 | - Capsule::schema()->create('users', function($table) |
|
12 | - { |
|
11 | + Capsule::schema()->create('users', function($table) { |
|
13 | 12 | $table->increments('id'); |
14 | 13 | $table->string('email')->unique(); |
15 | 14 | $table->string('full_name'); |
@@ -8,8 +8,7 @@ |
||
8 | 8 | */ |
9 | 9 | public function up() |
10 | 10 | { |
11 | - Capsule::schema()->create('logs', function($table) |
|
12 | - { |
|
11 | + Capsule::schema()->create('logs', function($table) { |
|
13 | 12 | $table->increments('id'); |
14 | 13 | $table->string('action'); |
15 | 14 | $table->morphs('entity'); |
@@ -8,8 +8,7 @@ |
||
8 | 8 | */ |
9 | 9 | public function up() |
10 | 10 | { |
11 | - Capsule::schema()->create('roles_to_rights', function($table) |
|
12 | - { |
|
11 | + Capsule::schema()->create('roles_to_rights', function($table) { |
|
13 | 12 | $table->integer('role_id')->unsigned(); |
14 | 13 | $table->integer('right_id')->unsigned(); |
15 | 14 | $table->primary(['role_id', 'right_id']); |
@@ -12,8 +12,8 @@ |
||
12 | 12 | |
13 | 13 | public function actionIndex() |
14 | 14 | { |
15 | - echo 'This is sample console command.' . PHP_EOL; |
|
16 | - echo 'Actions: ' . PHP_EOL; |
|
17 | - echo 'partisan sample index' . PHP_EOL; |
|
15 | + echo 'This is sample console command.'.PHP_EOL; |
|
16 | + echo 'Actions: '.PHP_EOL; |
|
17 | + echo 'partisan sample index'.PHP_EOL; |
|
18 | 18 | } |
19 | 19 | } |