getKey()); return $this->response() ->success('Processed successfully.') ->redirect('/'); } /** * @return string|void */ protected function href() { return admin_url('auth/users'); } /** * @return string|array|void */ public function confirm() { return ['Confirm?', 'contents']; } /** * @param Model|Authenticatable|HasPermissions|null $user * * @return bool */ protected function authorize($user): bool { return true; } // 如果你想自定义动作按钮的HTML,可以重写此方法 public function html() { return view('orderdetail'); } /** * @return array */ protected function parameters() { return []; } }