isDirty('path') && $gif->path && Storage::disk(Gifs::DISK)->exists($gif->path)) { $size = @getimagesize(Storage::disk(Gifs::DISK)->path($gif->path)); $gif->width = $size[0] ?? null; $gif->height = $size[1] ?? null; } }); static::deleted(fn (Gif $gif) => Storage::disk(Gifs::DISK)->delete($gif->path)); } }