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('enrollments', function (Blueprint $table) { |
||
17 | $table->increments('id'); //obligatori |
||
18 | $table->boolean('validated'); //només les vàlides són actives. |
||
19 | $table->boolean('finished'); //indica si la matricula està finalitzada. |
||
20 | //$table->integer('period_id'); //De moment descartat //obligatori |
||
21 | $table->integer('study_id'); |
||
22 | $table->integer('course_id'); |
||
23 | $table->integer('classroom_id'); |
||
24 | $table->timestamps(); //timestamps |
||
25 | //$table->userstamps(); |
||
26 | }); |
||
27 | } |
||
28 | |||
39 |
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.