From 352c9fc74abb4351619c0ea9ebcc53db871c3be8 Mon Sep 17 00:00:00 2001 From: wahyuun Date: Wed, 6 Mar 2024 16:43:12 +0700 Subject: [PATCH] update unique username --- app/Http/Controllers/HumanResourceController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/HumanResourceController.php b/app/Http/Controllers/HumanResourceController.php index a29c92f..1cbee8b 100644 --- a/app/Http/Controllers/HumanResourceController.php +++ b/app/Http/Controllers/HumanResourceController.php @@ -22,7 +22,8 @@ class HumanResourceController extends Controller 'name' => 'required', 'ktp_number' => 'required|string|unique:m_users,ktp_number', 'employee_type' => 'required', - 'company_id' => 'required' + 'company_id' => 'required', + 'username' => 'unique:m_users,username' ]); $data = $request->all();