In my case, using observer, I am trying to save a model object in json format on both events of Create, Update.
$record = $model::create($data);the
$record->start_timefield remains a Carbon object.
$record = model::find($id);and the
$record->start_timeis string date format.
Ideally it should be the same in both case and should be string data format.
Why the difference? how to resolve it?