src/Traits/ResourceFlagsTrait.php
protected function explodeResourceIfElse($resource)
    {
        $resource = explode("?:", $resource, 2);
        $resources = array();

        foreach ($resource as $r) {
            $resources[] = trim($r);
        }

        return $resources;
    }
protected function explodeResourceIfElse($resource)
    {
        $resource = explode("?:", $resource, 2);
        $resources = array();

        foreach ($resource as $r) {
            $resources[] = trim($r);
        }

        return $resources;
    }
Explodes the ?: flag into pieces

@param string $resource The resource string

@return array The parsed resources