Skip to content

Commit d30672c

Browse files
authored
Update artisan.md (laravel#9122)
return array from options closure
1 parent f981151 commit d30672c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

artisan.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ If you would like complete control over the prompt, you may provide a closure th
443443
label: 'Search for a user:',
444444
placeholder: 'E.g. Taylor Otwell',
445445
options: fn ($value) => strlen($value) > 0
446-
? User::where('name', 'like', "%{$value}%")->pluck('name', 'id')
446+
? User::where('name', 'like', "%{$value}%")->pluck('name', 'id')->all()
447447
: []
448448
),
449449
];

0 commit comments

Comments
 (0)