Conditions | 2 |
Paths | 2 |
Total Lines | 20 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function run(): void |
||
12 | { |
||
13 | //Action when run the seed |
||
14 | |||
15 | $data = [ |
||
16 | 0 => [ |
||
17 | 'id' => 1, |
||
18 | 'username' => 'admin', |
||
19 | 'email' => '[email protected]', |
||
20 | 'password' => '$2y$10$Qi77pV.yPh22hDamxxzqW.gsAhQsmib2JABtLb5kZTSB9taEwm7au', |
||
21 | 'status' => 'A', |
||
22 | 'lastname' => 'Super', |
||
23 | 'firstname' => 'Admin', |
||
24 | 'role' => 'Super Administrator', |
||
25 | 'created_at' => '2023-12-05 15:02:58', |
||
26 | 'updated_at' => '2023-12-07 05:27:40', |
||
27 | ], |
||
28 | ]; |
||
29 | foreach ($data as $row) { |
||
30 | $this->insert($row)->into('users'); |
||
31 | } |
||
34 | } |