Conditions | 2 |
Paths | 2 |
Total Lines | 32 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
8 | public function run() |
||
9 | { |
||
10 | $seeds = [ |
||
11 | [ |
||
12 | 'username' => 'riaz', |
||
13 | 'password' => Hash::make('pass123'), |
||
14 | 'email' => '[email protected]' |
||
15 | ], |
||
16 | [ |
||
17 | 'username' => 'noman', |
||
18 | 'password' => Hash::make('pass123'), |
||
19 | 'email' => '[email protected]' |
||
20 | ], |
||
21 | [ |
||
22 | 'username' => 'affan', |
||
23 | 'password' => Hash::make('pass123'), |
||
24 | 'email' => '[email protected]' |
||
25 | ], |
||
26 | [ |
||
27 | 'username' => 'user123', |
||
28 | 'password' => Hash::make('pass123'), |
||
29 | 'email' => '[email protected]' |
||
30 | ] |
||
31 | ]; |
||
32 | |||
33 | $user = config('guardian.userModel'); |
||
34 | |||
35 | foreach ($seeds as $seed) |
||
36 | { |
||
37 | $user::create($seed); |
||
38 | } |
||
39 | } |
||
40 | |||
41 | } |