如果不使用Laravel自己的assets()
等功能,我如何访问存储在public/images
文件夹中的图像?
I just want to get the direct URL of the images stored in images folder.
Eg:
localhost/webapp/images/stackoverflow.png
当请求链接时,我应该获得直接图像.
如果不使用Laravel自己的assets()
等功能,我如何访问存储在public/images
文件夹中的图像?
I just want to get the direct URL of the images stored in images folder.
Eg:
localhost/webapp/images/stackoverflow.png
当请求链接时,我应该获得直接图像.
如果您在Blade 模板内
{{ URL::to('/') }}/images/stackoverflow.png