| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | Schema::create('push_notifications_devices', function (Blueprint $table) { |
||
| 16 | $table->increments('id'); |
||
| 17 | $table->string('device_token',100); |
||
| 18 | $table->enum('device_type', ['android', 'ios']); |
||
| 19 | $table->integer('user_id'); |
||
| 20 | $table->boolean('active')->default(1); |
||
| 21 | $table->unique(array('device_token', 'device_type')); |
||
| 22 | $table->softDeletes(); |
||
| 23 | $table->timestamps(); |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | |||
| 36 | } |
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.