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:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user