| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function up() |
||
| 32 | { |
||
| 33 | Schema::create('quotalog', function (Blueprint $table) { |
||
| 34 | $table->increments('id'); |
||
| 35 | $table->date('date'); |
||
| 36 | $table->string('connection'); //@See config/quota.php |
||
| 37 | $table->integer('hits')->default(0); |
||
| 38 | $table->integer('misses')->default(0); |
||
| 39 | |||
| 40 | $table->timestamps(); |
||
| 41 | |||
| 42 | $table->unique(['date', 'connection']); |
||
| 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.