Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function run() |
||
16 | { |
||
17 | try { |
||
18 | factory(App\User::class)->create([ |
||
19 | "name" => env('ADMIN_USER', "$USER_NAME$"), |
||
20 | "email" => env('ADMIN_EMAIL', "$USER_EMAIL"), |
||
21 | "password" => bcrypt(env('ADMIN_PWD', '123456'))] |
||
22 | ); |
||
23 | } catch (\Illuminate\Database\QueryException $exception) { |
||
24 | |||
25 | } |
||
26 | } |
||
27 | } |
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.