| Conditions | 1 |
| Paths | 1 |
| Total Lines | 28 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | Schema::create('users', function (Blueprint $table) { |
||
| 16 | $table->increments('id'); |
||
| 17 | $table->string('name', 100)->nullable(); |
||
| 18 | $table->string('email')->unique(); |
||
| 19 | $table->string('password', 60)->nullable(); |
||
| 20 | $table->boolean('blocked')->default(0); |
||
| 21 | $table->date('last_change_password')->nullable(); |
||
| 22 | $table->string('two_factor_code', 4)->nullable(); |
||
| 23 | $table->softDeletes(); |
||
| 24 | $table->rememberToken(); |
||
| 25 | $table->timestamps(); |
||
| 26 | }); |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Create Default users. |
||
| 30 | */ |
||
| 31 | \DB::table('users')->insertGetId( |
||
| 32 | [ |
||
| 33 | 'name' => 'Admin', |
||
| 34 | 'email' => '[email protected]', |
||
| 35 | 'password' => bcrypt('123456'), |
||
| 36 | 'created_at' => \DB::raw('NOW()'), |
||
| 37 | 'updated_at' => \DB::raw('NOW()') |
||
| 38 | ] |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | |||
| 51 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.