public function markSent($messageId = null) { $this->message_id = $messageId; $this->email_error = null; $this->sent_date = Carbon::now()->toDateTimeString(); $this->save(); }