Laravel Timestamp Being Updated Without Explicit Call To Do So
问题 So I'm running into an annoying problem with Laravel update and save. I have a model/table Invoice and invoices , that has a timestamp sent_at . Invoice.php class Invoice extends Model { protected $dates = [ "sent_at", ]; } I have the following function that updates the Invoice : InvoicesController.php : public function postPayInvoice(Request $request, $invoiceId){ $user = $this->apiResponse->user; $invoiceItemIds = $request->input("invoice_item_ids"); $invoice = Invoice::with(["invoiceItems"