Answers for "laravel image path asset"

PHP
2

laravel asset

// To access laravel assets
asset('sp-icon/Vodacom-Original.svg')

// To echo the value use braces
{{ asset('you-are-in-public/your-file-name') }}
Posted by: Guest on September-08-2021
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

Browse Popular Code Answers by Language