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