getDirectFileUrl() 공개 정적인 메소드

public static getDirectFileUrl ( $path, $disk, boolean $prioritizeSpeed = false ) : null | string
$path
$disk
$prioritizeSpeed boolean
리턴 null | string
예제 #1
0
 public function getLogoURL($cachebuster = false)
 {
     if (!$this->hasLogo()) {
         return null;
     }
     $disk = $this->getLogoDisk();
     $adapter = $disk->getAdapter();
     if ($adapter instanceof \League\Flysystem\Adapter\Local) {
         // Stored locally
         $logo_url = str_replace(public_path(), url('/'), $adapter->applyPathPrefix($this->logo), $count);
         if ($cachebuster) {
             $logo_url .= '?no_cache=' . time();
         }
         if ($count == 1) {
             return str_replace(DIRECTORY_SEPARATOR, '/', $logo_url);
         }
     }
     return Document::getDirectFileUrl($this->logo, $this->getLogoDisk());
 }