Catch image inside storage folder

1

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?

    
asked by anonymous 02.12.2016 / 22:57

2 answers

2

Create a symbolic link inside the /public folder. How to create symbolic link , examples here SOPt ?:

All examples are for 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

03.12.2016 / 12:56
1

A simpler way would be:

asset ("storage / app / public / banners / banner.png");

    
15.04.2018 / 15:23