I want to show image in backend render list. For that how to get the path to show image. We have tried base_path() method.
But it gives me full path like "opt/lampp/htdocs/ashish/" but i want to get http://localhost/ashish
I want to show image in backend render list. For that how to get the path to show image. We have tried base_path() method.
But it gives me full path like "opt/lampp/htdocs/ashish/" but i want to get http://localhost/ashish
Please use Request::getBaseUrl() for get base path like http://localhost/ashish
You can use:
Config::get('app.url')
but first you have to properly configure your base path in app/config.php
I think is more general and you can also force the https if you need it.
This the way that I have tried & proved its working nicely when working with displaying images from media manager.
Config::get('cms.storage.media.path')