| @@ 569-576 (lines=8) @@ | ||
| 566 | * |
|
| 567 | * @return $this |
|
| 568 | */ |
|
| 569 | public function rules($rules = null, $messages = []) |
|
| 570 | { |
|
| 571 | $this->rules = $this->mergeRules($rules, $this->rules); |
|
| 572 | ||
| 573 | $this->setValidationMessages('default', $messages); |
|
| 574 | ||
| 575 | return $this; |
|
| 576 | } |
|
| 577 | ||
| 578 | /** |
|
| 579 | * Set the update validation rules for the field. |
|
| @@ 586-593 (lines=8) @@ | ||
| 583 | * |
|
| 584 | * @return $this |
|
| 585 | */ |
|
| 586 | public function updateRules($rules = null, $messages = []) |
|
| 587 | { |
|
| 588 | $this->updateRules = $this->mergeRules($rules, $this->updateRules); |
|
| 589 | ||
| 590 | $this->setValidationMessages('update', $messages); |
|
| 591 | ||
| 592 | return $this; |
|
| 593 | } |
|
| 594 | ||
| 595 | /** |
|
| 596 | * Set the creation validation rules for the field. |
|