Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
21 | public function up() |
||
22 | { |
||
23 | Schema::create( |
||
24 | 'jobs', |
||
25 | function (Blueprint $table) { |
||
26 | $table->bigIncrements('id'); |
||
27 | $table->unsignedInteger('created_at'); |
||
28 | $table->unsignedInteger('available_at'); |
||
29 | $table->unsignedInteger('reserved_at')->nullable(); |
||
30 | $table->string('queue'); |
||
31 | $table->longText('payload'); |
||
32 | $table->tinyInteger('attempts')->unsigned(); |
||
33 | $table->tinyInteger('reserved')->unsigned(); |
||
34 | $table->index(['queue', 'reserved', 'reserved_at']); |
||
35 | } |
||
36 | ); |
||
37 | } |
||
38 | |||
49 |
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.