feat(trash): implementasi fitur Tong Sampah (Recycle Bin) soft deletes dan retensi otomatis 30/60/90 hari di Super Admin

This commit is contained in:
Ray1111-aa
2026-10-28 09:47:16 +07:00
parent cb9891b1e3
commit 926683fd34
42 changed files with 1603 additions and 26 deletions
@@ -252,8 +252,8 @@ class HseEmployeeFlexibleUnitKerjaAndModalTest extends TestCase
$response->assertSessionHas('success');
$response->assertRedirect(route('hse.employees.index'));
$this->assertDatabaseMissing('employees', ['id' => $employee->id]);
$this->assertDatabaseMissing('users', ['id' => $linkedUser->id]);
$this->assertSoftDeleted('employees', ['id' => $employee->id]);
$this->assertSoftDeleted('users', ['id' => $linkedUser->id]);
}
public function test_cannot_delete_employee_with_operational_records(): void