Updating record with custom action

i want to update data from another model with custom action, but the result always false(not updated), So far, this is what I've done. Function save is running smoothly btw
update_on_custom_action.png
Solution
Schedule::updateOrCreate(
  ['ticket_header_ticket_id' => $ticket->ticket_id],
  ['schedule' => $data['schedule']]
)


?
Was this page helpful?