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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -