Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | private function insertManager() |
||
36 | { |
||
37 | $managerTable = $this->managerModel->getTable(); |
||
38 | if ($managerTable != 'users') { |
||
39 | DB::table($managerTable)->insert([ |
||
40 | 'id' => 1, |
||
41 | 'name' => 'admin', |
||
42 | 'email' => '[email protected]', |
||
43 | 'password' => bcrypt('123456'), |
||
44 | 'created_at' => Carbon::now(), |
||
45 | 'updated_at' => Carbon::now(), |
||
46 | ]); |
||
47 | } |
||
48 | } |
||
49 | } |
||
50 |
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.