id = $id; } public function build(): nodeCrashWarning { return $this->view('emails.nodeCrashWarning')->subject('节点阻断警告')->with( [ 'content' => NotificationLog::find($this->id)->content, ] ); } // 发件失败处理 public function failed(Exception $e): void { NotificationLog::whereId($this->id)->update( ['status' => -1, 'error' => $e->getMessage()] ); } }