Answers for "laravel get image from public path"

PHP
3

set image asset path in laravel

//Assets in app/public
// in image
<img src="{{URL::asset('/images/logo.jpg')}}"/>
// in div style
<div style="background-image: url({{URL::asset('images/image.jpg')}});">
</div>
Posted by: Guest on February-01-2022
0

laravel image path

You have to put all your assets in app/public folder, and to access them from your views you can use asset() helper method.

Ex. you can retrieve assets/images/image.png in your view as following:

<img src="{{asset('assets/images/image.png')}}">

this answer is from stack-overflow
by->Walid Ammar
Posted by: Guest on September-29-2021

Code answers related to "laravel get image from public path"

Browse Popular Code Answers by Language