Conditions | 1 |
Paths | 1 |
Total Lines | 35 |
Code Lines | 25 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | |||
17 | Schema::create('CustomField', function (Blueprint $table) { |
||
18 | $table->increments('id'); |
||
19 | $table->string('title', 25); |
||
20 | $table->string('friendly_name', 150); |
||
21 | $table->string('default_value', 250)->nullable(); |
||
22 | $table->string('type', 25); |
||
23 | $table->binary('register'); |
||
24 | $table->binary('edit'); |
||
25 | $table->binary('mandatory'); |
||
26 | $table->binary('edit'); |
||
27 | $table->text("html"); |
||
28 | $table->string('entity', 100); |
||
29 | |||
30 | $table->timestamps(); |
||
31 | $table->softDeletes(); |
||
32 | $table->creation(); |
||
33 | }); |
||
34 | |||
35 | Schema::create('CustomValue', function (Blueprint $table) { |
||
36 | $table->increments('id'); |
||
37 | $table->integer('customfield')->unsigned(); |
||
38 | $table->string('value', 250)->nullable(); |
||
39 | |||
40 | $table->morphs("entity"); |
||
41 | $table->timestamps(); |
||
42 | $table->softDeletes(); |
||
43 | $table->creation(); |
||
44 | |||
45 | $table->foreign('customfield')->references('id')->on('CustomField'); |
||
46 | }); |
||
47 | |||
48 | } |
||
49 | |||
64 |
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.