Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function up() |
||
10 | { |
||
11 | Capsule::schema()->create('refresh_tokens', function($table) { |
||
12 | $table->increments('id'); |
||
13 | $table->integer('user_id')->unsigned()->index(); |
||
14 | $table->string('refresh_token')->unique()->nullable(); |
||
15 | $table->timestamp('created_at')->useCurrent(); |
||
16 | }); |
||
17 | |||
18 | } |
||
19 | |||
28 |
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.