/** * Copy the local file to Storage */ protected function copyLocalToStorage($localPath, $storagePath) { return Storage::put($storagePath, FileHelper::get($localPath), $this->isPublic() ? 'public' : null); }
/** * 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); }
/** * Copy the local file to Storage */ protected function copyLocalToStorage($localPath, $storagePath) { return Storage::put($storagePath, FileHelper::get($localPath)); }