Добавлена страница штаба
Добавлены графики Добавлены события отчетов
This commit is contained in:
19
app/Observers/DepartmentPatientObserver.php
Normal file
19
app/Observers/DepartmentPatientObserver.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Observers;
|
||||
|
||||
use App\Events\PatientDataChanged;
|
||||
use App\Models\DepartmentPatient;
|
||||
|
||||
class DepartmentPatientObserver
|
||||
{
|
||||
public function created(DepartmentPatient $patient): void
|
||||
{
|
||||
PatientDataChanged::dispatch($patient, 'created');
|
||||
}
|
||||
|
||||
public function updated(DepartmentPatient $patient): void
|
||||
{
|
||||
PatientDataChanged::dispatch($patient, 'updated');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user