| @@ 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. |
|
| @@ 459-468 (lines=10) @@ | ||
| 456 | * |
|
| 457 | * @return $this |
|
| 458 | */ |
|
| 459 | public function checked($checked = []) |
|
| 460 | { |
|
| 461 | if ($checked instanceof Arrayable) { |
|
| 462 | $checked = $checked->toArray(); |
|
| 463 | } |
|
| 464 | ||
| 465 | $this->checked = array_merge($this->checked, $checked); |
|
| 466 | ||
| 467 | return $this; |
|
| 468 | } |
|
| 469 | ||
| 470 | /** |
|
| 471 | * Add `required` attribute to current field if has required rule, |
|