Make name and e-mail based searches with like for easier administration. (#1397)

* Update UserRepository.php

Make `name` and `e-mail` based searches with `like` for easier administration and search.

* Update search.blade.php

Remove old dashed out code

* Update index.blade.php

Add proper state selections
This commit is contained in:
B.Fatih KOZ
2022-02-08 00:02:17 +03:00
committed by GitHub
parent 94735103aa
commit 08624042f2
3 changed files with 21 additions and 13 deletions

View File

@@ -90,11 +90,11 @@ class UserRepository extends Repository
}
if ($request->filled('name')) {
$where['name'] = $request->name;
$where[] = ['name', 'LIKE', '%'.$request->name.'%'];
}
if ($request->filled('email')) {
$where['email'] = $request->email;
$where[] = ['email', 'LIKE', '%'.$request->email.'%'];
}
if ($request->filled('state')) {