php - Flysystem local asset from outside public folder in Laravel 4 -
i have following method asset depending on cdn used:
public function getasset($filename, $dir = null, $prefix = null) { $extension = file::extension($filename); $name = file::name($filename); $filename = $dir . $prefix . $name . '.' . $extension; if(flysystem::getdefaultconnection() == 'awss3') return flysystem::getadapter()->getclient()->getobjecturl('xxxx', $filename); if(flysystem::getdefaultconnection() == 'local') return flysystem::getadapter()->getclient()->getobjecturl($filename); }
when 'local' storage selected (in config) want able asset app/storage/temp/media/ directory , display them image in tag, how can modify above work that?
how asset outside public directory anyway?
Comments
Post a Comment