Example #1
0
 /**
  * Adds prefix to file path
  *
  * @param  string $file file
  * @return string prefixed file path
  */
 protected function prefix($file = '')
 {
     $path = parent::prefix($file);
     fn_set_hook('storage_prefix', $path, $this->type);
     return $path;
 }
Example #2
0
 /**
  * Adds prefix to file path
  *
  * @param  string $file file
  * @return string prefixed file path
  */
 protected function prefix($file = '')
 {
     $path = rtrim($this->getOption('dir'), '/') . '/' . parent::prefix($file);
     fn_set_hook('storage_prefix', $path, $this->type);
     return $path;
 }