| @@ 44-53 (lines=10) @@ | ||
| 41 | * |
|
| 42 | * @return $this |
|
| 43 | */ |
|
| 44 | public function checked($checked = []) |
|
| 45 | { |
|
| 46 | if ($checked instanceof Arrayable) { |
|
| 47 | $checked = $checked->toArray(); |
|
| 48 | } |
|
| 49 | ||
| 50 | $this->checked = (array) $checked; |
|
| 51 | ||
| 52 | return $this; |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * Draw inline checkboxes. |
|
| @@ 452-461 (lines=10) @@ | ||
| 449 | * |
|
| 450 | * @return $this |
|
| 451 | */ |
|
| 452 | public function checked($checked = []) |
|
| 453 | { |
|
| 454 | if ($checked instanceof Arrayable) { |
|
| 455 | $checked = $checked->toArray(); |
|
| 456 | } |
|
| 457 | ||
| 458 | $this->checked = array_merge($this->checked, $checked); |
|
| 459 | ||
| 460 | return $this; |
|
| 461 | } |
|
| 462 | ||
| 463 | /** |
|
| 464 | * Get or set rules. |
|