| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 27 | public function handle(AddOwnerCommand $command) |
||
| 28 | { |
||
| 29 | $group = Owner::create([ |
||
| 30 | 'name' => $command->name, |
||
| 31 | 'path' => $command->path, |
||
| 32 | 'user_id' => $command->user_id, |
||
| 33 | 'description' => $command->description, |
||
| 34 | 'type' => $command->type, |
||
| 35 | ]); |
||
| 36 | |||
| 37 | event(new OwnerWasAddedEvent($group)); |
||
| 38 | |||
| 39 | return $group; |
||
| 40 | } |
||
| 41 | } |
||
| 42 |