| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function up() |
||
| 10 | { |
||
| 11 | Capsule::schema()->create('users', function($table) |
||
| 12 | { |
||
| 13 | $table->increments('id'); |
||
| 14 | $table->string('email')->unique(); |
||
| 15 | $table->string('full_name'); |
||
| 16 | $table->string('password'); |
||
| 17 | $table->string('access_token')->unique()->nullable(); |
||
| 18 | $table->string('password_reset_token')->nullable(); |
||
| 19 | $table->integer('role_id'); |
||
| 20 | $table->integer('created_by'); |
||
| 21 | $table->integer('updated_by')->nullable(); |
||
| 22 | $table->timestamps(); |
||
| 23 | $table->softDeletes(); |
||
| 24 | $table->integer('status'); |
||
| 25 | }); |
||
| 26 | |||
| 27 | } |
||
| 28 | |||
| 37 |
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.