How can I access the images stored inside public/images
folder without the use of Laravel's own functions like assets()
?
I just want to get the direct URL of the images stored in images folder.
Eg:
localhost/webapp/images/stackoverflow.png
When requesting the link i should get the direct image.
Just put your Images in Public Directory (public/... folder or direct images). Public directory is by default rendered by laravel application. Let's suppose I stored images in public/images/myimage.
I need it to store only the filename of the image and extension, as I'm saving it to the laravel app/storage/uploads folder. response from the form. use App\Person; use Image; the file will be moved inside the storage folder under the uploads folder .
Just put your Images in Public Directory (public/...folder or direct images).
Public directory is by default rendered by laravel application.
Let's suppose I stored images in public/images/myimage.jpg
.
Then in your HTML view, page like: (image.blade.php)
<img src="{{url('/images/myimage.jpg')}}" alt="Image"/>
If you are inside a blade template
{{ URL::to('/') }}/images/stackoverflow.png
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With