Esempio n. 1
0
 /**
  * Define the public address for the storage path.
  */
 public function getPublicPath()
 {
     $uploadsPath = config('site.storage.uploads.path', '/storage/app/uploads');
     if (!preg_match("/(\\/\\/|http|https)/", $uploadsPath)) {
         $uploadsPath = \Request::getBasePath() . $uploadsPath;
     }
     if ($this->isPublic()) {
         return $uploadsPath . '/public/';
     } else {
         return $uploadsPath . '/protected/';
     }
 }