diff --git a/app/Http/Controllers/WorkerController.php b/app/Http/Controllers/WorkerController.php index d7dfd75..6f38081 100644 --- a/app/Http/Controllers/WorkerController.php +++ b/app/Http/Controllers/WorkerController.php @@ -582,7 +582,7 @@ class WorkerController extends Controller 'password' => ['required', 'string', 'min:6'], 'password_confirmation' => ['required', 'same:password'], 'politik' => ['required', 'accepted'], - 'job_titles' => ['required', 'numeric'] + 'job_titles' => ['nullable'] ]; $messages = [ @@ -594,7 +594,6 @@ class WorkerController extends Controller 'string' => 'Поле должно быть не менее :min символов', ], 'accepted' => 'Необходимо согласиться с политикой конфиденциальности', - 'numeric' => 'Укажите обязательное поле', ]; $validator = Validator::make($request->all(), $rules, $messages); diff --git a/resources/views/modals/register.blade.php b/resources/views/modals/register.blade.php index 0c327ac..edb034d 100644 --- a/resources/views/modals/register.blade.php +++ b/resources/views/modals/register.blade.php @@ -103,7 +103,7 @@