protected function getDomainStoragePath($domain = null)
 {
     if ($domain == null) {
         $domain = $this->domain;
     }
     return storage_path() . DIRECTORY_SEPARATOR . domain_sanitized($domain);
 }
Пример #2
0
 public function setDomain($domain = null)
 {
     if ($domain === null || !is_string($domain)) {
         $domain = App::detectDomain();
     }
     $this->domain = $domain;
     $this->domain_sanitized = domain_sanitized($domain);
 }
Пример #3
0
 /**
  * Get the path to the storage directory.
  *
  * @return string
  */
 public function domainStoragePath()
 {
     $domainPath = domain_sanitized($this['domain']);
     $domainStoragePath = $this->storagePath() . DIRECTORY_SEPARATOR . $domainPath;
     if (file_exists($domainStoragePath)) {
         return $domainStoragePath;
     }
     return $this->storagePath();
 }