public function getBaseURL($projectFile) { switch ($this->storage->getDefaultDriver()) { case 'local': return $this->storage->getDriver()->getAdapter()->getPathPrefix() . '/' . $projectFile->getFileName(); } }
public function getUrl($filename) { if (\Config::get('filesystems.default') == 's3') { return \Storage::getDriver()->getAdapter()->getClient()->getObjectUrl(\Storage::getDriver()->getAdapter()->getBucket(), $this->basepath . $filename); } else { return $this->basepath . $filename; } }