Add Seeder UpdateTarifLMSSeeder

This commit is contained in:
R
2024-01-19 14:03:11 +07:00
parent 1d1392c2d0
commit fd1a8cffac

View File

@@ -146,6 +146,7 @@ class UpdateTarifLMSSeeder extends Seeder
->whereHas('healthcare', function($hc) use ($tarif) { ->whereHas('healthcare', function($hc) use ($tarif) {
$hc->whereIn('sKodeRS', $tarif['applied_to']); $hc->whereIn('sKodeRS', $tarif['applied_to']);
}) })
->withTrashed()
->update($updateUmum); ->update($updateUmum);
$this->command->info('Updating : Dokter Umum'); $this->command->info('Updating : Dokter Umum');
} }
@@ -171,6 +172,7 @@ class UpdateTarifLMSSeeder extends Seeder
->whereHas('healthcare', function($hc) use ($tarif) { ->whereHas('healthcare', function($hc) use ($tarif) {
$hc->whereIn('sKodeRS', $tarif['applied_to']); $hc->whereIn('sKodeRS', $tarif['applied_to']);
}) })
->withTrashed()
->update($updateSpesialis); ->update($updateSpesialis);
$this->command->info('Updating : Dokter Spesialis'); $this->command->info('Updating : Dokter Spesialis');
} }
@@ -198,6 +200,7 @@ class UpdateTarifLMSSeeder extends Seeder
->whereHas('healthcare', function($hc) use ($tarif) { ->whereHas('healthcare', function($hc) use ($tarif) {
$hc->whereIn('sKodeRS', $tarif['applied_to']); $hc->whereIn('sKodeRS', $tarif['applied_to']);
}) })
->withTrashed()
->update($updateSubSpesialis); ->update($updateSubSpesialis);
$this->command->info('Updating : Dokter Sub Spesialis'); $this->command->info('Updating : Dokter Sub Spesialis');
} }