Browse Source

🐛 Ne télécharge pas les images quand il n'y en a pas

main
Clément 3 months ago
parent
commit
a9ee66a2d4
  1. 4
      app/Home.php

4
app/Home.php

@ -73,7 +73,9 @@ class Home extends Model implements Feedable
{
// Download images on creation
static::created(static function ($home) {
Artisan::call('app:downloadimage ' . $home->id);
if (!empty($home->pictures)) {
Artisan::call('app:downloadimage ' . $home->id);
}
});
}

Loading…
Cancel
Save