| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | Schema::create('password_resets', function (Blueprint $table) { |
||
| 16 | $table->string('email')->index(); |
||
| 17 | $table->foreign('email')->references('email')->on('users')->onDelete('cascade'); |
||
| 18 | $table->string('token')->index(); |
||
| 19 | $table->timestamp('created_at'); |
||
| 20 | }); |
||
| 21 | } |
||
| 22 | |||
| 36 |
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.