Conditions | 1 |
Paths | 1 |
Total Lines | 28 |
Code Lines | 20 |
Lines | 22 |
Ratio | 78.57 % |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | |||
17 | View Code Duplication | Schema::create('ContactType', function (Blueprint $table) { |
|
18 | $table->increments('id'); |
||
19 | $table->string('name', 100); |
||
20 | $table->string('icon', 50)->nullable(); |
||
21 | $table->string('color_c', 6)->nullable(); |
||
22 | $table->string('color_hc', 6)->nullable(); |
||
23 | $table->string('description', 250); |
||
24 | $table->timestamps(); |
||
25 | $table->softDeletes(); |
||
26 | }); |
||
27 | |||
28 | View Code Duplication | Schema::create('Contact', function (Blueprint $table) { |
|
29 | $table->increments('id'); |
||
30 | $table->string('contact_reference', 50); |
||
31 | $table->integer('contacttype')->unsigned(); |
||
32 | $table->string('contact', 250); |
||
33 | $table->tinyInteger('visibility'); |
||
34 | $table->timestamps(); |
||
35 | $table->softDeletes(); |
||
36 | $table->creation(); |
||
37 | |||
38 | $table->foreign('contacttype')->references('id')->on('ContactType'); |
||
39 | }); |
||
40 | |||
41 | } |
||
42 | |||
57 |
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.