Update Master Formularium dan Corporate formularium
This commit is contained in:
@@ -15,6 +15,7 @@ use App\Models\ExclusionRules;
|
||||
use App\Models\ExclusionImport;
|
||||
use App\Models\Icd;
|
||||
use App\Models\IcdTemplate;
|
||||
use App\Models\FormulariumTemplate;
|
||||
use App\Models\AuditTrail;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Str;
|
||||
@@ -131,11 +132,18 @@ class AppServiceProvider extends ServiceProvider
|
||||
IcdTemplate::updated(function ($model) {
|
||||
$this->logAuditTrail($model, 'updated');
|
||||
});
|
||||
|
||||
IcdTemplate::deleted(function ($model) {
|
||||
$this->logAuditTrail($model, 'deleted');
|
||||
});
|
||||
|
||||
// Formualrium Template
|
||||
FormulariumTemplate::updated(function ($model) {
|
||||
$this->logAuditTrail($model, 'updated');
|
||||
});
|
||||
FormulariumTemplate::deleted(function ($model) {
|
||||
$this->logAuditTrail($model, 'deleted');
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user