Beispiel #1
0
 /**
  * Convert path string to url string
  *
  * @param string $path
  * @return string
  */
 public function pathToUrl($path)
 {
     return trim(join('/', FileSystem::split($path)), '/');
 }
 /**
  * Add folder to parent directory
  */
 private function addFolderBack()
 {
     $parts = collect(FileSystem::split($this->getPath()->relativePath()));
     $parts->pop();
     $patent_path = app(Path::class)->change($parts->implode(DIRECTORY_SEPARATOR));
     $folder = app(Folder::class)->setPath($patent_path)->setName('..')->updateDetails();
     $this->content->push($folder->details());
 }