| @@ 591-598 (lines=8) @@ | ||
| 588 | * |
|
| 589 | * @return $this |
|
| 590 | */ |
|
| 591 | public function rules($rules = null, $messages = []) |
|
| 592 | { |
|
| 593 | $this->rules = $this->mergeRules($rules, $this->rules); |
|
| 594 | ||
| 595 | $this->setValidationMessages('default', $messages); |
|
| 596 | ||
| 597 | return $this; |
|
| 598 | } |
|
| 599 | ||
| 600 | /** |
|
| 601 | * Set the update validation rules for the field. |
|
| @@ 608-615 (lines=8) @@ | ||
| 605 | * |
|
| 606 | * @return $this |
|
| 607 | */ |
|
| 608 | public function updateRules($rules = null, $messages = []) |
|
| 609 | { |
|
| 610 | $this->updateRules = $this->mergeRules($rules, $this->updateRules); |
|
| 611 | ||
| 612 | $this->setValidationMessages('update', $messages); |
|
| 613 | ||
| 614 | return $this; |
|
| 615 | } |
|
| 616 | ||
| 617 | /** |
|
| 618 | * Set the creation validation rules for the field. |
|