| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | public function up() |
||
| 18 | { |
||
| 19 | Schema::create('time_tracker', function (Blueprint $table) { |
||
| 20 | $table->increments('id'); |
||
| 21 | |||
| 22 | $table->timestamp('open_at')->nullable(); |
||
| 23 | $table->timestamp('close_at')->nullable(); |
||
| 24 | |||
| 25 | $table->string('status')->nullable()->default(NULL); |
||
| 26 | $table->string('duration')->nullable(); |
||
| 27 | |||
| 28 | $table->integer('user_id')->unsigned()->index(); |
||
| 29 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); |
||
| 30 | |||
| 31 | }); |
||
| 32 | } |
||
| 33 | |||
| 42 |
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.