Ad

Can't Load Images In Laravel Blade Files

- 1 answer

I've downloaded a template from here.

I want to design pages like that in laravel blade pages, I put css and js files in public folder and link blade files to them, and it works.

But I can't handle images, there isn't a folder for images in this template and I don't know how to load them in my blade pages.

Ad

Answer

you can upload images on below path

storage/app/public/images

//this way you can use in your blade file   

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

but you need to run one command

php artisan storage:link

it will create a symlink from public/storage to storage/app/public

Ad
source: stackoverflow.com
Ad