Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function up() |
||
16 | { |
||
17 | $this->getSchema()->create('user_notifications', function($table) { |
||
18 | $table->increments('id'); |
||
19 | $table->string('user_id'); |
||
20 | $table->string('msg', 2048); |
||
21 | $table->string('uri', 2048); |
||
22 | $table->text('vars')->nullable(); |
||
23 | $table->boolean('readed')->default(false); |
||
24 | $table->timestamps(); |
||
25 | }); |
||
26 | parent::up(); |
||
27 | } |
||
47 | } |
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.