public function execute(Request $request)
    {
        $command = $request->get('command');

        try {
            $result = $this->manager()->execute($command);
        } catch (\Exception $exception) {
            return $this->renderException($exception);
        }

        if (is_string($result) && Str::startsWith($result, ['ERR ', 'WRONGTYPE '])) {
            return $this->renderException(new \Exception($result));
        }

        return $this->getDumpedHtml($result);
    }
public function execute(Request $request)
    {
        $command = $request->get('command');

        try {
            $result = $this->manager()->execute($command);
        } catch (\Exception $exception) {
            return $this->renderException($exception);
        }

        if (is_string($result) && Str::startsWith($result, ['ERR ', 'WRONGTYPE '])) {
            return $this->renderException(new \Exception($result));
        }

        return $this->getDumpedHtml($result);
    }
public function execute ( Request $ request ) { $ command = $ request -> get ( 'command' ) ; try { $ result = $ this -> manager ( ) -> execute ( $ command ) ; } catch ( \ Exception $ exception ) { return $ this -> renderException ( $ exception ) ; } if ( is_string ( $ result ) && Str :: startsWith ( $ result , [ 'ERR ' , 'WRONGTYPE ' ] ) ) { return $ this -> renderException ( new \ Exception ( $ result ) ) ; } return $ this -> getDumpedHtml ( $ result ) ; }
Execute a redis command.

@param Request $request

@return bool|string
Execute a redis command .