Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function down() |
||
43 | { |
||
44 | $connection = config('categorizable.connection'); |
||
45 | |||
46 | if (Schema::connection($connection)->hasTable('categories')) { |
||
47 | Schema::connection($connection)->drop('categories'); |
||
48 | } |
||
49 | |||
50 | if (Schema::connection($connection)->hasTable('categorizable')) { |
||
51 | Schema::connection($connection)->drop('categorizable'); |
||
52 | } |
||
53 | } |
||
54 | } |
||
55 |
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.