Skip to content

Commit

Permalink
Merge pull request #596 from laravel-filament/feature/arrayable-selec…
Browse files Browse the repository at this point in the history
…t-options

feature: Arrayable select options
  • Loading branch information
danharrin committed Sep 18, 2021
2 parents 28b0a9b + 0500052 commit 60584f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/forms/src/Components/MultiSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getSearchResultsUsing(callable $callback): static
return $this;
}

public function options(array | callable $options): static
public function options(array | Arrayable | callable $options): static
{
$this->options = $options;

Expand Down
2 changes: 1 addition & 1 deletion packages/forms/src/Components/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function getSearchResultsUsing(callable $callback): static
return $this;
}

public function options(array | callable $options): static
public function options(array | Arrayable | callable $options): static
{
$this->options = $options;

Expand Down

0 comments on commit 60584f2

Please sign in to comment.