mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Made website searchable on users table
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
7979bc63ae
commit
cb78451d6c
|
@ -123,6 +123,10 @@ class UsersController extends Controller
|
||||||
$users = $users->where('users.country', '=', $request->input('country'));
|
$users = $users->where('users.country', '=', $request->input('country'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($request->filled('website')) {
|
||||||
|
$users = $users->where('users.website', '=', $request->input('website'));
|
||||||
|
}
|
||||||
|
|
||||||
if ($request->filled('zip')) {
|
if ($request->filled('zip')) {
|
||||||
$users = $users->where('users.zip', '=', $request->input('zip'));
|
$users = $users->where('users.zip', '=', $request->input('zip'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,6 +67,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
||||||
'gravatar',
|
'gravatar',
|
||||||
'vip',
|
'vip',
|
||||||
'autoassign_licenses',
|
'autoassign_licenses',
|
||||||
|
'website',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
|
@ -120,6 +121,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
||||||
'phone',
|
'phone',
|
||||||
'jobtitle',
|
'jobtitle',
|
||||||
'employee_num',
|
'employee_num',
|
||||||
|
'website',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue