Beispiel #1
0
 /**
  * @param $collection
  * @param $filters
  * @return string
  */
 protected function getPath($collection, $filters)
 {
     /**
      * If the asset is remote just return it.
      */
     if (starts_with($collection, ['http', '//'])) {
         return $collection;
     }
     $path = $this->paths->outputPath($collection);
     if ($this->shouldPublish($path, $collection, $filters)) {
         $this->publish($path, $collection, $filters);
     }
     return $this->paths->prefix() . $path;
 }