mercredi 14 avril 2021

Return Response Image in Laravel 7

I'm trying to create a testing url for rand 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="https://impact100.org/wp-content/uploads/2019/12/New-Member-Welcome.jpg" alt="Smiley face" height="200" width="300">';

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 ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire