protected function convertToResponse(Exception $exception) : Response { $message = config('app.debug') ? (string) $exception : 'Whoops, something went wrong...'; $exception = new SlackSlashCommandException($message, $exception->getCode(), $exception); $response = $exception->getResponse($this->request); return $response; }
public function getResponse(Request $request) : Response { return parent::getResponse($request)->withAttachment(Attachment::create()->setText($this->handler->getHelpDescription())); }