public function findPackageAsset($name)
    {
        if (str_contains($name, '::'))
        {
            list($namespace, $name) = explode('::', $name);

            if ( ! isset($this->hints[$namespace]))
            {
                return;
            }

            $path = $this->prefixPublicPath('packages/'.$this->hints[$namespace].'/'.$name);

            if ($this->files->exists($path))
            {
                return $path;
            }
        }
    }
public function findPackageAsset($name)
    {
        if (str_contains($name, '::'))
        {
            list($namespace, $name) = explode('::', $name);

            if ( ! isset($this->hints[$namespace]))
            {
                return;
            }

            $path = $this->prefixPublicPath('packages/'.$this->hints[$namespace].'/'.$name);

            if ($this->files->exists($path))
            {
                return $path;
            }
        }
    }
public function findPackageAsset ( $ name ) { if ( str_contains ( $ name , '::' ) ) { list ( $ namespace , $ name ) = explode ( '::' , $ name ) ; if ( ! isset ( $ this -> hints [ $ namespace ] ) ) { return ; } $ path = $ this -> prefixPublicPath ( 'packages/' . $ this -> hints [ $ namespace ] . '/' . $ name ) ; if ( $ this -> files -> exists ( $ path ) ) { return $ path ; } } }
Find an asset by looking for a prefixed package namespace.

@param  string  $name
@return null|string
Find an asset by looking for a prefixed package namespace .