@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | public function up() |
| 16 | 16 | { |
| 17 | 17 | if (!Schema::hasTable('users')) { |
| 18 | - Schema::create('users', function (Blueprint $table) { |
|
| 18 | + Schema::create('users', function(Blueprint $table) { |
|
| 19 | 19 | $table->increments('id'); |
| 20 | 20 | $table->string('name'); |
| 21 | 21 | $table->string('firstname')->default('firstname'); |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | $table->timestamps(); |
| 26 | 26 | }); |
| 27 | 27 | } else { |
| 28 | - Schema::table('users', function (Blueprint $table) { |
|
| 28 | + Schema::table('users', function(Blueprint $table) { |
|
| 29 | 29 | if (!Schema::hasColumn('users', 'name')) { |
| 30 | 30 | $table->string('name')->default('name'); |
| 31 | 31 | } |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $table->string('lastname')->default('lastname'); |
| 37 | 37 | } |
| 38 | 38 | if (!Schema::hasColumn('users', 'email')) { |
| 39 | - $table->string('email')->default("user_".rand(100000,999999)."@kendozone.com")->unique(); |
|
| 39 | + $table->string('email')->default("user_" . rand(100000, 999999) . "@kendozone.com")->unique(); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | if (!Schema::hasColumn('users', 'password')) { |