@@ -54,7 +54,7 @@ |
||
54 | 54 | | |
55 | 55 | */ |
56 | 56 | |
57 | - 'from' => ['address' => '[email protected]', 'name' => 'plunner info'], |
|
57 | + 'from' => [ 'address' => '[email protected]', 'name' => 'plunner info' ], |
|
58 | 58 | |
59 | 59 | /* |
60 | 60 | |-------------------------------------------------------------------------- |
@@ -96,7 +96,7 @@ |
||
96 | 96 | | |
97 | 97 | */ |
98 | 98 | |
99 | - 'lottery' => [2, 100], |
|
99 | + 'lottery' => [ 2, 100 ], |
|
100 | 100 | |
101 | 101 | /* |
102 | 102 | |-------------------------------------------------------------------------- |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | | |
12 | 12 | */ |
13 | 13 | |
14 | -$factory->define(plunner\Company::class, function (Faker\Generator $faker) { |
|
14 | +$factory->define(plunner\Company::class, function(Faker\Generator $faker) { |
|
15 | 15 | return [ |
16 | 16 | 'name' => $faker->name, |
17 | 17 | 'email' => $faker->email, |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | }); |
22 | 22 | |
23 | 23 | |
24 | -$factory->define(plunner\Employee::class, function (Faker\Generator $faker) { |
|
24 | +$factory->define(plunner\Employee::class, function(Faker\Generator $faker) { |
|
25 | 25 | return [ |
26 | 26 | 'name' => $faker->name, |
27 | 27 | 'email' => $faker->email, |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('companies', function (Blueprint $table) { |
|
15 | + Schema::create('companies', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->string('name')->unique(); |
18 | 18 | $table->string('email')->unique(); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('password_resets_companies', function (Blueprint $table) { |
|
15 | + Schema::create('password_resets_companies', function(Blueprint $table) { |
|
16 | 16 | $table->string('email')->index(); |
17 | 17 | $table->string('token')->index(); |
18 | 18 | $table->timestamp('created_at'); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('employees', function (Blueprint $table) { |
|
15 | + Schema::create('employees', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->string('name'); |
18 | 18 | $table->string('email'); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | $table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade')->onUpdate('cascade'); |
22 | 22 | $table->rememberToken(); |
23 | 23 | $table->timestamps(); |
24 | - $table->unique(['email', 'company_id']); |
|
24 | + $table->unique([ 'email', 'company_id' ]); |
|
25 | 25 | }); |
26 | 26 | } |
27 | 27 |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('password_resets_employees', function (Blueprint $table) { |
|
15 | + Schema::create('password_resets_employees', function(Blueprint $table) { |
|
16 | 16 | $table->string('email')->index(); |
17 | 17 | $table->string('token')->index(); |
18 | 18 | $table->timestamp('created_at'); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('groups', function (Blueprint $table) { |
|
15 | + Schema::create('groups', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->timestamps(); |
18 | 18 | $table->string('name'); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | $table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade')->onUpdate('cascade'); |
22 | 22 | $table->integer('planner_id')->unsigned(); |
23 | 23 | $table->foreign('planner_id')->references('id')->on('employees')->onDelete('cascade')->onUpdate('cascade'); |
24 | - $table->unique(['name', 'company_id']); |
|
24 | + $table->unique([ 'name', 'company_id' ]); |
|
25 | 25 | }); |
26 | 26 | } |
27 | 27 |
@@ -12,12 +12,12 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('employee_groups', function (Blueprint $table) { |
|
15 | + Schema::create('employee_groups', function(Blueprint $table) { |
|
16 | 16 | $table->integer('employee_id')->unsigned(); |
17 | 17 | $table->foreign('employee_id')->references('id')->on('employees')->onDelete('cascade')->onUpdate('cascade'); |
18 | 18 | $table->integer('group_id')->unsigned(); |
19 | 19 | $table->foreign('group_id')->references('id')->on('groups')->onDelete('cascade')->onUpdate('cascade'); |
20 | - $table->unique(['employee_id', 'group_id']); |
|
20 | + $table->unique([ 'employee_id', 'group_id' ]); |
|
21 | 21 | }); |
22 | 22 | } |
23 | 23 |