diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index b59d572e..ac05fa23 100755 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -92,7 +92,12 @@ class RegisterController extends Controller ]; // Dynamically add the required fields - $userFields = UserField::where(['show_on_registration' => true, 'required' => true])->get(); + $userFields = UserField::where([ + 'show_on_registration' => true, + 'required' => true, + 'active' => true, + ])->get(); + foreach ($userFields as $field) { $rules['field_'.$field->slug] = 'required'; }