diff --git a/.styleci.yml b/.styleci.yml index f698aa8..6fbd388 100644 --- a/.styleci.yml +++ b/.styleci.yml @@ -5,3 +5,4 @@ enabled: disabled: - length_ordered_imports + - self_accessor \ No newline at end of file diff --git a/src/Image.php b/src/Image.php index 04e7ce3..3141a1c 100644 --- a/src/Image.php +++ b/src/Image.php @@ -47,7 +47,7 @@ class Image extends Model implements ResponsiveImage public static function boot() { parent::boot(); - static::deleting(function (self $image) { + static::deleted(function (Image $image) { dispatch(new DeleteCloudImage($image->path)); }); }