These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | use Illuminate\Database\Seeder; |
||
4 | |||
5 | /** |
||
6 | * Class AdminUserSeeder |
||
7 | */ |
||
8 | class AdminUserSeeder extends Seeder |
||
9 | { |
||
10 | /** |
||
11 | * Run the database seeds. |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
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) { |
||
0 ignored issues
–
show
Coding Style
Comprehensibility
introduced
by
Loading history...
|
|||
24 | |||
25 | } |
||
26 | } |
||
27 | } |