24 lines
493 B
PHP
24 lines
493 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Observers;
|
|
|
|
use App\Models\PatientIllness;
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
class PatientIllnessObserver
|
|
{
|
|
public function saved(PatientIllness $patientIllness): void
|
|
{
|
|
Cache::forget('illness_options_1');
|
|
Cache::forget('illness_options_2');
|
|
}
|
|
|
|
public function deleted(PatientIllness $patientIllness): void
|
|
{
|
|
Cache::forget('illness_options_1');
|
|
Cache::forget('illness_options_2');
|
|
}
|
|
}
|