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