Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function up() |
||
16 | { |
||
17 | $this->getSchema()->create('profile_fields', function($table) { |
||
18 | $table->increments('id'); |
||
19 | $table->enum('type', ['text', 'link']); |
||
20 | $table->text('name'); |
||
21 | $table->string('reg_exp', 512)->nullable(); |
||
22 | $table->tinyInteger('reg_cond')->default(0); |
||
23 | $table->timestamps(); |
||
24 | }); |
||
25 | parent::up(); |
||
26 | } |
||
46 | } |
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.