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
In twig you can do:
{{ url('/') }}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With