| @@ 527-536 (lines=10) @@ | ||
| 524 | * |
|
| 525 | * @return $this |
|
| 526 | */ |
|
| 527 | public function checked($checked = []) |
|
| 528 | { |
|
| 529 | if ($checked instanceof Arrayable) { |
|
| 530 | $checked = $checked->toArray(); |
|
| 531 | } |
|
| 532 | ||
| 533 | $this->checked = array_merge($this->checked, $checked); |
|
| 534 | ||
| 535 | return $this; |
|
| 536 | } |
|
| 537 | ||
| 538 | /** |
|
| 539 | * Add `required` attribute to current field if has required rule, |
|
| @@ 67-76 (lines=10) @@ | ||
| 64 | * |
|
| 65 | * @return $this |
|
| 66 | */ |
|
| 67 | public function checked($checked = []) |
|
| 68 | { |
|
| 69 | if ($checked instanceof Arrayable) { |
|
| 70 | $checked = $checked->toArray(); |
|
| 71 | } |
|
| 72 | ||
| 73 | $this->checked = (array) $checked; |
|
| 74 | ||
| 75 | return $this; |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * Draw inline checkboxes. |
|