public function handle(Request $request): Response
    {
        $handlers = $this->findAvailableHandlers();

        if ($command = $this->getArgument('command')) {
            return $this->displayHelpForCommand($handlers, $command);
        }

        return $this->displayListOfAllCommands($handlers);
    }
public function handle(Request $request): Response
    {
        $handlers = $this->findAvailableHandlers();

        if ($command = $this->getArgument('command')) {
            return $this->displayHelpForCommand($handlers, $command);
        }

        return $this->displayListOfAllCommands($handlers);
    }
public function handle ( Request $ request ) : Response { $ handlers = $ this -> findAvailableHandlers ( ) ; if ( $ command = $ this -> getArgument ( 'command' ) ) { return $ this -> displayHelpForCommand ( $ handlers , $ command ) ; } return $ this -> displayListOfAllCommands ( $ handlers ) ; }
Handle the given request.

@param \Spatie\SlashCommand\Request $request

@return \Spatie\SlashCommand\Response
Handle the given request .