| @@ 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. |
|
| @@ 472-481 (lines=10) @@ | ||
| 469 | * |
|
| 470 | * @return $this |
|
| 471 | */ |
|
| 472 | public function checked($checked = []) |
|
| 473 | { |
|
| 474 | if ($checked instanceof Arrayable) { |
|
| 475 | $checked = $checked->toArray(); |
|
| 476 | } |
|
| 477 | ||
| 478 | $this->checked = array_merge($this->checked, $checked); |
|
| 479 | ||
| 480 | return $this; |
|
| 481 | } |
|
| 482 | ||
| 483 | /** |
|
| 484 | * Add `required` attribute to current field if has required rule, |
|