mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-05 07:20:58 +08:00
[admin] filter improve & fix ad link
This commit is contained in:
@@ -25,6 +25,9 @@ class UserRepository extends BaseRepository
|
||||
if (!empty($params['email'])) {
|
||||
$query->where('email', 'like',"%{$params['email']}%");
|
||||
}
|
||||
if (!empty($params['class'])) {
|
||||
$query->where('class', $params['class']);
|
||||
}
|
||||
list($sortField, $sortType) = $this->getSortFieldAndType($params);
|
||||
$query->orderBy($sortField, $sortType);
|
||||
return $query->paginate();
|
||||
|
||||
Reference in New Issue
Block a user