Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function up() |
||
18 | { |
||
19 | Schema::create('shifts', function (Blueprint $table) { |
||
20 | $table->increments('id'); |
||
21 | $table->enum('torn', ['tarda','mati']); |
||
22 | $table->string('name'); |
||
23 | $table->timestamps(); |
||
24 | }); |
||
25 | |||
26 | Schema::create('shift_timeslot', function (Blueprint $table) { |
||
27 | $table->integer('shift_id')->unsigned(); |
||
28 | $table->integer('timeslot_id')->unsigned(); |
||
29 | $table->timestamps(); |
||
30 | $table->unique(['shift_id', 'timeslot_id']); |
||
31 | }); |
||
32 | } |
||
33 | |||
45 |
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.