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