diff --git a/app/Http/Requests/Admin/HR/EmployeeRequest.php b/app/Http/Requests/Admin/HR/EmployeeRequest.php index cbaae92..31c0d72 100644 --- a/app/Http/Requests/Admin/HR/EmployeeRequest.php +++ b/app/Http/Requests/Admin/HR/EmployeeRequest.php @@ -31,7 +31,7 @@ public function rules(): array Rule::unique('users', 'username')->ignore($userId, 'id'), ], 'full_name' => ['required', 'string', 'max:200'], - 'phone_number' => ['nullable', 'string', 'max:20', 'digits_between:1,20'], + 'phone_number' => ['nullable', 'string', 'max:20'], 'gender' => ['nullable', 'in:male,female'], 'birth_date' => ['nullable', 'date'], 'address' => ['nullable', 'string'], diff --git a/app/Http/Requests/Admin/Master/CustomerRequest.php b/app/Http/Requests/Admin/Master/CustomerRequest.php index e73f30b..93ad5eb 100644 --- a/app/Http/Requests/Admin/Master/CustomerRequest.php +++ b/app/Http/Requests/Admin/Master/CustomerRequest.php @@ -18,7 +18,7 @@ public function rules(): array return [ 'name' => ['required', 'string', 'max:200', Rule::unique('customers', 'name')->ignore($customer)], - 'phone_number' => ['nullable', 'string', 'max:20', 'digits_between:1,20'], + 'phone_number' => ['nullable', 'string', 'max:20'], 'address' => ['nullable', 'string'], ]; } diff --git a/app/Http/Requests/Admin/Master/SupplierRequest.php b/app/Http/Requests/Admin/Master/SupplierRequest.php index eea8eba..f3ca296 100644 --- a/app/Http/Requests/Admin/Master/SupplierRequest.php +++ b/app/Http/Requests/Admin/Master/SupplierRequest.php @@ -18,7 +18,7 @@ public function rules(): array return [ 'name' => ['required', 'string', 'max:200', Rule::unique('suppliers', 'name')->ignore($supplier)], - 'phone_number' => ['nullable', 'string', 'max:20', 'digits_between:1,20'], + 'phone_number' => ['nullable', 'string', 'max:20'], 'address' => ['nullable', 'string'], ]; }