Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 7 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
10 | public function run() |
||
11 | { |
||
12 | $role = Role::where('name', 'admin')->firstOrFail(); |
||
13 | $manager = new Manager(); |
||
14 | $manager->name = 'admin'; |
||
15 | $manager->email = '[email protected]'; |
||
16 | $manager->password = '123456'; |
||
17 | $manager->save(); |
||
21 |
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.