AltBrian
AltBrian

Reputation: 2562

broken image icon in my laravel project

I have an img folder within the public folder of my Laravel 5.4 project. When I refer to the image with the following code.

<img class="mb-3 img-fluid rounded" src="public/img/pdx.jpg" alt="Portland">

I get the broken image icon on the page. I am using Bootstrap 4 cdn for the this page. What am I doing wrong. Any help would be appreciated.

Upvotes: 0

Views: 433

Answers (1)

Amit Kumar
Amit Kumar

Reputation: 308

Just remove public from src attribute and then try. Because Laravel only understand assets within public folder

Upvotes: 1

Related Questions