Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('tokens', function (Blueprint $table) { |
||
17 | $table->bigIncrements('id'); |
||
18 | $table->unsignedInteger('user_id')->index(); |
||
19 | $table->string('api_token', 36)->unique(); |
||
20 | $table->timestamp('expired_at')->nullable(); |
||
21 | $table->timestamps(); |
||
22 | }); |
||
23 | } |
||
24 | |||
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.