With laravel I created a function to have an image + a random id from 0 to 30. Unfortunately the image stored in my database is not processed and is listed in my database like this: https://source.unsplash.com/800x800/?portrait=28 How can I solve this I have not found anything yet.
my Factory :
'profile_photo_path' => $this->loadImage(),
my function :
public function loadImage()
{
return "https://source.unsplash.com/800x800/?portrait=" . mt_rand(1, 30);
}
When you click you get a different url.
this is what I want to enter in the database
Aucun commentaire:
Enregistrer un commentaire