Skip to content

Commit

Permalink
Merge pull request #22 from CharlieEtienne/CharlieEtienne-patch-1
Browse files Browse the repository at this point in the history
Replace spread operator with union operator
  • Loading branch information
rupadana authored Mar 21, 2024
2 parents 3f39e72 + d524c4e commit 22e81ad
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Resources/AnnouncementResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ public static function form(Form $form): Form
->rgb(),

Select::make('users')
->options([
'all' => 'all',
...User::all()->pluck('name', 'id'),
])
->options(['all' => 'all'] + User::all()->pluck('name', 'id')->toArray())
->multiple()
->required(),
]);
Expand Down

0 comments on commit 22e81ad

Please sign in to comment.