I'm uploading images to the folder storage
, app/public
, inside this I created a /banners
folder and I'm uploading those images into this folder.
How can I get these images and display them in the view?
I'm uploading images to the folder storage
, app/public
, inside this I created a /banners
folder and I'm uploading those images into this folder.
How can I get these images and display them in the view?
Create a symbolic link inside the /public
folder. How to create symbolic link , examples here SOPt ?:
All examples are for linux bash
and no Windows
since Windows Vista
can be created with the command mklink
:
Sintaxe
MKLINK [[/d] | [/h] | [/j]] <Link><Target>
Parameters
/d
Creates a symbolic directory link. By default, mklink creates a symbolic link of the file.
/h
Creates a real link instead of a symbolic link.
/j
Creates a directory junction.
<Link>
Specifies the name of the symbolic link being created.
<Target>
Specifies the path (relative or absolute) to which the new symbolic link refers.
/?
Displays help at the command prompt.
Reference: Microsoft TechNet - MKLINK
In the
A simpler way would be:
asset ("storage / app / public / banners / banner.png");