where('status', 1)->update(['trade_status' => 0]); DB::commit(); } catch (\Exception $e) { DB::rollBack(); throw $e; } return $this->response()->success('Processed successfully.')->refresh(); } /** * @return string|array|void */ public function confirm() { return ['确定全部' . $this->title . '?']; // return ['Confirm?', 'contents']; } /** * @param Model|Authenticatable|HasPermissions|null $user * * @return bool */ protected function authorize($user): bool { return true; } /** * @return array */ protected function parameters() { return []; } protected function html() { return <<formatHtmlAttributes()}> HTML; } }