Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function run() |
||
13 | { |
||
14 | $model = new \Mascame\Artificer\Model\FakeModel(); |
||
15 | |||
16 | $model->setup([ |
||
17 | 'table' => 'artificer_users' |
||
18 | ]); |
||
19 | |||
20 | $model->unguard(); |
||
21 | |||
22 | $model->create([ |
||
23 | 'name' => 'Demo User', |
||
24 | 'email' => '[email protected]', // fake email |
||
25 | 'username' => 'artificer', |
||
26 | 'password' => \Hash::make('artificer'), |
||
27 | 'role' => 'admin', |
||
28 | ]); |
||
29 | } |
||
30 | } |
||
31 |