My Laravel update operation returns true for dd($data). But I want it to return the updated data. How can I change this to get that output? There is one condition I have that the update should be called directly on the model. Any suggestions?
$data = FileLogs::find($id)->update([
'orderId' => $request->orderId,
'fileId' => $request->fileId,
'status' => $request->status
]);