Update message and update query

This commit is contained in:
Nobody 2020-10-17 18:26:34 +01:00
parent cd3572730b
commit 10548c9d8f
2 changed files with 4 additions and 3 deletions

View file

@ -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) {