| Conditions | 1 |
| Paths | 1 |
| Total Lines | 41 |
| Code Lines | 27 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | |||
| 17 | Schema::create('ContactType', function (Blueprint $table) { |
||
| 18 | $table->increments('id'); |
||
| 19 | $table->string('name', 100); |
||
| 20 | $table->text('html')->nullable(); |
||
| 21 | $table->string('description', 250); |
||
| 22 | |||
| 23 | $table->timestamps(); |
||
| 24 | $table->softDeletes(); |
||
| 25 | $table->creation(); |
||
| 26 | }); |
||
| 27 | |||
| 28 | 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->text('permissions'); |
||
| 34 | |||
| 35 | $table->timestamps(); |
||
| 36 | $table->softDeletes(); |
||
| 37 | $table->creation(); |
||
| 38 | |||
| 39 | $table->foreign('contacttype')->references('id')->on('ContactType'); |
||
| 40 | }); |
||
| 41 | |||
| 42 | Schema::create('Contact_Entity', function (Blueprint $table) { |
||
| 43 | $table->increments('id'); |
||
| 44 | $table->integer('contact')->unsigned(); |
||
| 45 | $table->morphs("entity"); |
||
| 46 | |||
| 47 | $table->timestamps(); |
||
| 48 | $table->softDeletes(); |
||
| 49 | $table->creation(); |
||
| 50 | |||
| 51 | $table->foreign('contact')->references('id')->on('Contact'); |
||
| 52 | }); |
||
| 53 | |||
| 54 | } |
||
| 55 | |||
| 70 |
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.