public function isAction($request = null)
    {
        $is_action = false;
        if ($this->isSingle()) {
            $queryString = $request ? $request->getQueryString() : Lb::app()->getQueryString();
            $requestUri = $request ? $request->getUri() : Lb::app()->getUri();
            if (Lb::app()->isPrettyUrl()) {
                $requestUri = str_replace('?' . $queryString, '', $requestUri);
                if (!trim($requestUri, '/') || stripos($requestUri, '/action/') !== false) {
                    $is_action = true;
                }
            } else {
                if (!trim($requestUri, '/') || stripos($queryString, 'action=') !== false) {
                    $is_action = true;
                }
            }
        }
        return $is_action;
    }
public function isAction($request = null)
    {
        $is_action = false;
        if ($this->isSingle()) {
            $queryString = $request ? $request->getQueryString() : Lb::app()->getQueryString();
            $requestUri = $request ? $request->getUri() : Lb::app()->getUri();
            if (Lb::app()->isPrettyUrl()) {
                $requestUri = str_replace('?' . $queryString, '', $requestUri);
                if (!trim($requestUri, '/') || stripos($requestUri, '/action/') !== false) {
                    $is_action = true;
                }
            } else {
                if (!trim($requestUri, '/') || stripos($queryString, 'action=') !== false) {
                    $is_action = true;
                }
            }
        }
        return $is_action;
    }
public function isAction ( $ request = null ) { $ is_action = false ; if ( $ this -> isSingle ( ) ) { $ queryString = $ request ? $ request -> getQueryString ( ) : Lb :: app ( ) -> getQueryString ( ) ; $ requestUri = $ request ? $ request -> getUri ( ) : Lb :: app ( ) -> getUri ( ) ; if ( Lb :: app ( ) -> isPrettyUrl ( ) ) { $ requestUri = str_replace ( '?' . $ queryString , '' , $ requestUri ) ; if ( ! trim ( $ requestUri , '/' ) || stripos ( $ requestUri , '/action/' ) !== false ) { $ is_action = true ; } } else { if ( ! trim ( $ requestUri , '/' ) || stripos ( $ queryString , 'action=' ) !== false ) { $ is_action = true ; } } } return $ is_action ; }
Detect Action Exists

@param  RequestContract $request
@return bool
Detect Action Exists