| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function handle($command) |
||
| 20 | { |
||
| 21 | $command->input['updated_at'] = Carbon::now(); |
||
| 22 | DB::table($command->entity->getTableName())->where('id', $command->entry_id)->update($command->input); |
||
| 23 | event(new EntryWasUpdated($command->entity, $command->entry_id, $command->input)); |
||
| 24 | return [ |
||
| 25 | 'entry_id' => $command->entry_id, |
||
| 26 | 'input' => $command->input |
||
| 27 | ]; |
||
| 28 | } |
||
| 29 | } |
||
| 30 |