| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 13 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | View Code Duplication | public function migrateUp() |
|
| 20 | { |
||
| 21 | try { |
||
| 22 | $this->builder->table( |
||
| 23 | $this->table, |
||
| 24 | function ($table) { |
||
| 25 | $table->string('value')->nullable()->change(); |
||
| 26 | } |
||
| 27 | ); |
||
| 28 | } catch (\Exception $e) { |
||
| 29 | dd($e->getMessage()); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 52 |
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.