Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function add(Invitation $i) |
||
14 | { |
||
15 | list($organizationId, $email, $firstname, $lastname) = $i->data(); |
||
16 | DB::table('invitations')->insert([ |
||
17 | 'organization_id' => $organizationId, |
||
18 | 'email' => $email, |
||
19 | 'firstname' => $firstname, |
||
20 | 'lastname' => $lastname, |
||
21 | 'send_at' => (new \DateTime())->format('Y-m-d H:i:s'), |
||
22 | 'hash' => $i->hash() |
||
23 | ]); |
||
38 |