passes($attribute, $value); } /** * Determine if the validation rule passes. * * @param string $attribute * @param mixed $value * @return bool */ public function passes($attribute, $value) { return !in_array(strtolower($value), $this->reserved); } /** * Get the validation error message. * * @return string */ public function message() { return Lang::get('rainlab.builder::lang.validation.reserved'); } }