mercredi 14 avril 2021

Return Response Image in Laravel 7

I'm trying to create a mini random image generator, as a start I've tried :

Route::get('/img/UoJb9wl.png','Image@random');

All I did is to return this

return '<img src="/assets/fe/img/welcome.jpeg" alt="Smiley face" width="200">';

Then, I tested on the live site :

I see the image loaded if I go to the URL

https://www.bunlongheng.com/img/UoJb9wl.png

enter image description here

If I imported on a site like JSFiddle like this

<img src="https://www.bunlongheng.com/img/UoJb9wl.png">

I can't see it.

Why ?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2QjTwQp
via IFTTT

Aucun commentaire:

Enregistrer un commentaire