| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function up() |
||
| 28 | { |
||
| 29 | Schema::create(config('rinvex.fort.tables.email_verifications'), function (Blueprint $table) { |
||
| 30 | // Columns |
||
| 31 | $table->string('token'); |
||
| 32 | $table->string('email'); |
||
| 33 | $table->string('agent')->nullable(); |
||
| 34 | $table->string('ip')->nullable(); |
||
| 35 | $table->timestamp('created_at'); |
||
| 36 | |||
| 37 | // Indexes |
||
| 38 | $table->primary('token'); |
||
| 39 | $table->index('email'); |
||
| 40 | |||
| 41 | // Engine |
||
| 42 | $table->engine = 'InnoDB'; |
||
| 43 | }); |
||
| 44 | } |
||
| 45 | |||
| 56 |
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.