| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('user_activation', function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->integer('user_id')->unsigned(); |
||
| 19 | $table->string('token')->index(); |
||
| 20 | $table->timestamp('expired'); |
||
| 21 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); |
||
| 22 | }); |
||
| 23 | |||
| 24 | Schema::table('users', function($table) { |
||
| 25 | $table->boolean('activated')->default(false); |
||
| 26 | }); |
||
| 27 | } |
||
| 28 | |||
| 43 |
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.