diff --git a/src/Presentation/Api/V1/Http/Requests/Employees/EmployeeShowRequest.php b/src/Presentation/Api/V1/Http/Requests/Employees/EmployeeShowRequest.php index a2ab2eb..124be11 100644 --- a/src/Presentation/Api/V1/Http/Requests/Employees/EmployeeShowRequest.php +++ b/src/Presentation/Api/V1/Http/Requests/Employees/EmployeeShowRequest.php @@ -14,7 +14,7 @@ final class EmployeeShowRequest extends FormRequest public function rules(): array { return [ - 'employeeId' => ['required', 'string', 'regex:/^\d{7,8}$/'], + 'employeeId' => ['required', 'string'], ]; } diff --git a/src/Presentation/Api/V1/Http/Requests/Employees/EmployeesIndexRequest.php b/src/Presentation/Api/V1/Http/Requests/Employees/EmployeesIndexRequest.php index d43fff9..66c930b 100644 --- a/src/Presentation/Api/V1/Http/Requests/Employees/EmployeesIndexRequest.php +++ b/src/Presentation/Api/V1/Http/Requests/Employees/EmployeesIndexRequest.php @@ -33,9 +33,9 @@ final class EmployeesIndexRequest extends FormRequest 'sortDirection' => ['sometimes', Rule::in(['Ascending', 'Descending'])], 'direction' => ['sometimes', Rule::in(['Ascending', 'Descending'])], 'since' => ['sometimes', 'date'], - 'establishment' => ['sometimes', 'string', 'regex:/^[\dA-Z]{2,}$/'], - 'siteId' => ['sometimes', 'string', 'regex:/^[A-Z]{2,}$/'], - 'serviceId' => ['sometimes', 'string', 'regex:/^\d{1,}$/'], + 'establishment' => ['sometimes', 'string'], + 'siteId' => ['sometimes', 'string'], + 'serviceId' => ['sometimes', 'string'], ]; }