method()) { // Brand new case 'POST': { $rules['name'] = "required|unique:custom_fields"; break; } default:break; } $rules['custom_format'] = 'valid_regex'; return $rules; } }