@@ 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. |
@@ 447-456 (lines=10) @@ | ||
444 | * |
|
445 | * @return $this |
|
446 | */ |
|
447 | public function checked($checked = []) |
|
448 | { |
|
449 | if ($checked instanceof Arrayable) { |
|
450 | $checked = $checked->toArray(); |
|
451 | } |
|
452 | ||
453 | $this->checked = array_merge($this->checked, $checked); |
|
454 | ||
455 | return $this; |
|
456 | } |
|
457 | ||
458 | /** |
|
459 | * Get or set rules. |