<?php

namespace App\Observers;

use App\Models\HomepageSlide;
use Illuminate\Support\Facades\Cache;

class HomepageSlideObserver
{
    public function saved(HomepageSlide $slide): void
    {
        Cache::forget('homepage.hero.slides');
    }

    public function deleted(HomepageSlide $slide): void
    {
        Cache::forget('homepage.hero.slides');
    }
}
