Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
12 | public function run() |
||
13 | { |
||
14 | // |
||
15 | self::company(); |
||
16 | $company = [ |
||
17 | 'name' => 'testInit', |
||
18 | 'email' => '[email protected]', |
||
19 | 'password' => bcrypt('test'), |
||
20 | 'remember_token' => str_random(10), |
||
21 | ]; |
||
22 | $company = plunner\Company::create($company); |
||
23 | self::employees($company); |
||
24 | $employee = new \plunner\Employee([ |
||
25 | 'name' => 'testEmp', |
||
26 | 'email' => '[email protected]', |
||
27 | 'password' => bcrypt('test'), |
||
28 | 'remember_token' => str_random(10), |
||
29 | ]); |
||
30 | $company->employees()->save($employee); |
||
31 | |||
32 | } |
||
33 | |||
48 |