コード例 #1
0
ファイル: File.php プロジェクト: mechiko/staff-october
 /**
  * Copy the local file to Storage
  */
 protected function copyLocalToStorage($localPath, $storagePath)
 {
     return Storage::put($storagePath, FileHelper::get($localPath), $this->isPublic() ? 'public' : null);
 }
コード例 #2
0
ファイル: File.php プロジェクト: tamboer/LaravelOctober
 /**
  * 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);
 }
コード例 #3
0
ファイル: File.php プロジェクト: janusnic/23copperleaf
 /**
  * Copy the local file to Storage
  */
 protected function copyLocalToStorage($localPath, $storagePath)
 {
     return Storage::put($storagePath, FileHelper::get($localPath));
 }