all(); foreach ($custom_fields as $field) { $field_rules[$field->slug] = $field->required ? 'required' : 'nullable'; } Log::debug('createPirepFormRequest::rules', $field_rules); return $field_rules; } }