Dmyers\Storage\Storage::config PHP 메소드

config() 공개 정적인 메소드

public static config ( $key, $default = null )
    public static function config($key, $default = null)
    {
        return \Config::get('laravel-storage::' . $key, $default);
    }

Usage Example

예제 #1
0
 /**
  * Upload a remote file into storage.
  *
  * @param string $url    The url to the remote file to upload.
  * @param string $target The path to the file to store.
  *
  * @return bool
  */
 public function remoteUpload($url, $target)
 {
     $tmp_name = md5($url);
     $tmp_path = Storage::config('tmp_path') . '/' . $tmp_name;
     if (!$this->remoteDownload($url, $tmp_path)) {
         return false;
     }
     return $this->upload($tmp_path, $target);
 }
All Usage Examples Of Dmyers\Storage\Storage::config