mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Better validation for manager_id
This commit is contained in:
parent
80393d73ae
commit
8937edb97e
|
@ -70,6 +70,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
|||
'email' => 'email|nullable',
|
||||
'password' => 'required|min:6',
|
||||
'locale' => 'max:10|nullable',
|
||||
'manager_id' => 'exists:users,id|nullable'
|
||||
];
|
||||
|
||||
use Searchable;
|
||||
|
|
Loading…
Reference in a new issue