Example #1
0
 /**
  * Copy the local file to Storage
  */
 protected function copyLocalToStorage($localPath, $storagePath)
 {
     return Storage::put($storagePath, FileHelper::get($localPath), $this->isPublic() ? 'public' : null);
 }
Example #2
0
 /**
  * Get file contents from storage device.
  */
 public function getContents($fileName = null)
 {
     if (!$fileName) {
         $fileName = $this->disk_name;
     }
     return FileHelper::get($this->getStorageDirectory() . $this->getPartitionDirectory() . $fileName);
 }
Example #3
0
 /**
  * Copy the local file to Storage
  */
 protected function copyLocalToStorage($localPath, $storagePath)
 {
     return Storage::put($storagePath, FileHelper::get($localPath));
 }