| @@ 48-57 (lines=10) @@ | ||
| 45 | * |
|
| 46 | * @return $this |
|
| 47 | */ |
|
| 48 | public function checked($checked = []) |
|
| 49 | { |
|
| 50 | if ($checked instanceof Arrayable) { |
|
| 51 | $checked = $checked->toArray(); |
|
| 52 | } |
|
| 53 | ||
| 54 | $this->checked = (array) $checked; |
|
| 55 | ||
| 56 | return $this; |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * Draw inline checkboxes. |
|
| @@ 495-504 (lines=10) @@ | ||
| 492 | * |
|
| 493 | * @return $this |
|
| 494 | */ |
|
| 495 | public function checked($checked = []) |
|
| 496 | { |
|
| 497 | if ($checked instanceof Arrayable) { |
|
| 498 | $checked = $checked->toArray(); |
|
| 499 | } |
|
| 500 | ||
| 501 | $this->checked = array_merge($this->checked, $checked); |
|
| 502 | ||
| 503 | return $this; |
|
| 504 | } |
|
| 505 | ||
| 506 | /** |
|
| 507 | * Add `required` attribute to current field if has required rule, |
|