@@ 83-92 (lines=10) @@ | ||
80 | * |
|
81 | * @return $this |
|
82 | */ |
|
83 | public function checked($checked = []) |
|
84 | { |
|
85 | if ($checked instanceof Arrayable) { |
|
86 | $checked = $checked->toArray(); |
|
87 | } |
|
88 | ||
89 | $this->checked = (array) $checked; |
|
90 | ||
91 | return $this; |
|
92 | } |
|
93 | ||
94 | /** |
|
95 | * Draw inline checkboxes. |
@@ 562-571 (lines=10) @@ | ||
559 | * |
|
560 | * @return $this |
|
561 | */ |
|
562 | public function checked($checked = []) |
|
563 | { |
|
564 | if ($checked instanceof Arrayable) { |
|
565 | $checked = $checked->toArray(); |
|
566 | } |
|
567 | ||
568 | $this->checked = array_merge($this->checked, $checked); |
|
569 | ||
570 | return $this; |
|
571 | } |
|
572 | ||
573 | /** |
|
574 | * Add `required` attribute to current field if has required rule, |