Update message and update query
This commit is contained in:
parent
cd3572730b
commit
10548c9d8f
2 changed files with 4 additions and 3 deletions
|
@ -58,8 +58,9 @@ class DeleteUserCommand extends Command
|
|||
Assert::notEmpty($search, 'Search term should be an email address, got: %s.');
|
||||
|
||||
$results = User::query()
|
||||
->where('email', 'LIKE', "$search%")
|
||||
->where('username', 'LIKE', "$search%")
|
||||
->where('id', 'LIKE', "$search%")
|
||||
->orWhere('username', 'LIKE', "$search%")
|
||||
->orWhere('email', 'LIKE', "$search%")
|
||||
->get();
|
||||
|
||||
if (count($results) < 1) {
|
||||
|
|
|
@ -14,7 +14,7 @@ return [
|
|||
'deleted' => 'Successfully deleted the requested location.',
|
||||
],
|
||||
'user' => [
|
||||
'search_users' => 'Enter a Username, UUID, or Email Address',
|
||||
'search_users' => 'Enter a Username, User ID, or Email Address',
|
||||
'select_search_user' => 'ID of user to delete (Enter \'0\' to re-search)',
|
||||
'deleted' => 'User successfully deleted from the Panel.',
|
||||
'confirm_delete' => 'Are you sure you want to delete this user from the Panel?',
|
||||
|
|
Loading…
Reference in a new issue