incorporeal
incorporeal

Reputation: 177

Laravel : Image is Broken

i want to add two logo in the welcome page.i have stored the images in the folder named image under the public folder.In the build in homepage of Laravel i want to show these two images. i tried these

<image img src="C:\xampp\htdocs\officeapp\public\image\MB.png" alt="Logo">        </image>

<img src="{{URL::asset('/image/MB.png')}}" alt="logo" height="200" width="200">

but image is not showing only 'Logo' word is showing...what should i do?

Upvotes: 0

Views: 1285

Answers (2)

Just Try
Just Try

Reputation: 3

try this one

<img href="{{ asset('/image/nashicon.ico') }}" />

Upvotes: 0

Odin Thunder
Odin Thunder

Reputation: 3547

Try this:

public_path() (Get the fully qualified path to the public directory.)

<img src="{{ public_path('/image/MB.png') }}" alt="logo" height="200" width="200">

Upvotes: 1

Related Questions