🐛 Ne télécharge pas les images quand il n'y en a pas
This commit is contained in:
@@ -73,7 +73,9 @@ class Home extends Model implements Feedable
|
||||
{
|
||||
// Download images on creation
|
||||
static::created(static function ($home) {
|
||||
if (!empty($home->pictures)) {
|
||||
Artisan::call('app:downloadimage ' . $home->id);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user