public function shouldPassThrough(Request $request) : bool
    {
        if (empty($this->http_method) && empty($this->http_path)) {
            return true;
        }

        $method = $this->http_method;

        $matches = array_map(function ($path) use ($method) {
            $path = trim(config('lia.route.prefix'), '/').$path;

            if (Str::contains($path, ':')) {
                list($method, $path) = explode(':', $path);
                $method = explode(',', $method);
            }

            return compact('method', 'path');
        }, explode("\r\n", $this->http_path));

        foreach ($matches as $match) {
            if ($this->matchRequest($match, $request)) {
                return true;
            }
        }

        return false;
    }
public function shouldPassThrough(Request $request) : bool
    {
        if (empty($this->http_method) && empty($this->http_path)) {
            return true;
        }

        $method = $this->http_method;

        $matches = array_map(function ($path) use ($method) {
            $path = trim(config('lia.route.prefix'), '/').$path;

            if (Str::contains($path, ':')) {
                list($method, $path) = explode(':', $path);
                $method = explode(',', $method);
            }

            return compact('method', 'path');
        }, explode("\r\n", $this->http_path));

        foreach ($matches as $match) {
            if ($this->matchRequest($match, $request)) {
                return true;
            }
        }

        return false;
    }
public function shouldPassThrough ( Request $ request ) : bool { if ( empty ( $ this -> http_method ) && empty ( $ this -> http_path ) ) { return true ; } $ method = $ this -> http_method ; $ matches = array_map ( function ( $ path ) use ( $ method ) { $ path = trim ( config ( 'lia.route.prefix' ) , '/' ) . $ path ; if ( Str :: contains ( $ path , ':' ) ) { list ( $ method , $ path ) = explode ( ':' , $ path ) ; $ method = explode ( ',' , $ method ) ; } return compact ( 'method' , 'path' ) ; } , explode ( "\r\n" , $ this -> http_path ) ) ; foreach ( $ matches as $ match ) { if ( $ this -> matchRequest ( $ match , $ request ) ) { return true ; } } return false ; }
If request should pass through the current permission.

@param Request $request

@return bool
If request should pass through the current permission .