public static function boot() { parent::boot(); ProductColor::deleting(function ($productColor) { File::delete($productColor->image); }); }