I want to show the image in the backend render list. To do this, how to get the path to display the image. We tried the base_path () method.
But it gives me the full path, like "opt / lampp / htdocs / ashish /", but I want to get http: // localhost / ashish
Use Request :: getBaseUrl () to get the base path, e.g. http: // localhost / ashish
In the branch you can do:
{{ url('/') }}
This is what I tried and showed perfectly that it works well when working with displaying images from a media manager.
Config::get('cms.storage.media.path')
You can use:
Config::get('app.url')
but first you have to properly configure your base path in app / config.php
I think this is more general, and you can also force https if you need it.