diff --git a/app/Home.php b/app/Home.php index ef2be01..c036b07 100644 --- a/app/Home.php +++ b/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); + } }); }