Hi guys.
I am creating a portfolio on a vagrant virtual machine.
When i use "public_path()", for get images in public folder it returns "/var/www/..." and nothing its displayed.
Any solution ? sry for my bad english !
Thank you in advance.
public_path()
returns an absolute local path to the public directory. If you want a http response, use the url
helper function.
return url('img/image.png'); // http://domain.com/img/image.png
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community