Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d862521

Browse files
[12.x] Use whereLike for query builder (#10758)
1 parent 73dbd51 commit d862521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎artisan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ return [
494494
label: 'Search for a user:',
495495
placeholder: 'E.g. Taylor Otwell',
496496
options: fn ($value) => strlen($value) > 0
497-
? User::where('name', 'like', "%{$value}%")->pluck('name', 'id')->all()
497+
? User::whereLike('name', "%{$value}%")->pluck('name', 'id')->all()
498498
: []
499499
),
500500
];

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /