How i can display image from path Laravel?
there is my form.blade.php file
D:wampwwwblogresourcesviewsadminarticlespartialsform.blade.php
there are my images
D:wampwwwblogpublicimages
How I can display it? I use this, but this not work for me.
image_path : ”}}” alt=””>
Robert Niro
Laravel file() to store files https://laravel.com/docs/5.4/requests#files
Store the
$path
to your DB$path = $request->photo->store('logo');
the
$request->photo
is depending on your input file attribute name. In your case, it should be$request->img.
the above code will create a folder (if not exist), namely “logo” and store to that folder with a random string file name.
Also check your configuration for file, located at /config/filesystem.php. Default is set to public
Use asset function to get the full path from the public folder