Made website searchable on users table

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-02-22 16:13:54 +00:00
parent 7979bc63ae
commit cb78451d6c
2 changed files with 6 additions and 0 deletions

View file

@ -123,6 +123,10 @@ class UsersController extends Controller
$users = $users->where('users.country', '=', $request->input('country'));
}
if ($request->filled('website')) {
$users = $users->where('users.website', '=', $request->input('website'));
}
if ($request->filled('zip')) {
$users = $users->where('users.zip', '=', $request->input('zip'));
}

View file

@ -67,6 +67,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
'gravatar',
'vip',
'autoassign_licenses',
'website',
];
protected $casts = [
@ -120,6 +121,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
'phone',
'jobtitle',
'employee_num',
'website',
];
/**