src/Mgallegos/DecimaFile/File/Services/FileManagement/FileManager.php
public function getLocalFilePath($filename, $route, &$isTempFile, $includeStoragePath = false)
  {
    $isTempFile = false;

    if($this->Config->get('filesystems.default') == 'gcs')
    {
      $isTempFile = true;

      $this->Storage->disk('local')->put('//temp/' . $filename, $this->Storage->read($route));

      $route = 'temp/' . $filename;
    }

    if($includeStoragePath)
    {
      return storage_path('app') . '/' . $route;
    }

    return $route;
  }
public function getLocalFilePath($filename, $route, &$isTempFile, $includeStoragePath = false)
  {
    $isTempFile = false;

    if($this->Config->get('filesystems.default') == 'gcs')
    {
      $isTempFile = true;

      $this->Storage->disk('local')->put('//temp/' . $filename, $this->Storage->read($route));

      $route = 'temp/' . $filename;
    }

    if($includeStoragePath)
    {
      return storage_path('app') . '/' . $route;
    }

    return $route;
  }
public function getLocalFilePath ( $ filename , $ route , & $ isTempFile , $ includeStoragePath = false ) { $ isTempFile = false ; if ( $ this -> Config -> get ( 'filesystems.default' ) == 'gcs' ) { $ isTempFile = true ; $ this -> Storage -> disk ( 'local' ) -> put ( '//temp/' . $ filename , $ this -> Storage -> read ( $ route ) ) ; $ route = 'temp/' . $ filename ; } if ( $ includeStoragePath ) { return storage_path ( 'app' ) . '/' . $ route ; } return $ route ; }
Get local file path

@param string $filename
@param string $route
@param boolean $isTempFile

@param string $key

@return Response
Get local file path