Skip to content

Commit 10548c9

Browse files
committed
Update message and update query
1 parent cd35727 commit 10548c9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/Console/Commands/User/DeleteUserCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ public function handle()
5858
Assert::notEmpty($search, 'Search term should be an email address, got: %s.');
5959

6060
$results = User::query()
61-
->where('email', 'LIKE', "$search%")
62-
->where('username', 'LIKE', "$search%")
61+
->where('id', 'LIKE', "$search%")
62+
->orWhere('username', 'LIKE', "$search%")
63+
->orWhere('email', 'LIKE', "$search%")
6364
->get();
6465

6566
if (count($results) < 1) {

resources/lang/en/command/messages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
'deleted' => 'Successfully deleted the requested location.',
1515
],
1616
'user' => [
17-
'search_users' => 'Enter a Username, UUID, or Email Address',
17+
'search_users' => 'Enter a Username, User ID, or Email Address',
1818
'select_search_user' => 'ID of user to delete (Enter \'0\' to re-search)',
1919
'deleted' => 'User successfully deleted from the Panel.',
2020
'confirm_delete' => 'Are you sure you want to delete this user from the Panel?',

0 commit comments

Comments
 (0)