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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue