“Laravel Bildweg” Code-Antworten

Stellen Sie den Bild -Asset -Pfad in Laravel fest

//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>
Snippets

Laravel Bildweg


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
fellow web surfer

Laravel Bildweg

<img src="{{ asset('storage/photo/'.$contact->photo) }}"  alt='{{$contact->photo}}' width="50px" height="50px" alt="">
WinMaw

Ähnliche Antworten wie “Laravel Bildweg”

Fragen ähnlich wie “Laravel Bildweg”

Weitere verwandte Antworten zu “Laravel Bildweg” auf PHP

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen