Better validation for manager_id

This commit is contained in:
snipe 2018-10-01 22:04:17 -07:00
parent 80393d73ae
commit 8937edb97e

View file

@ -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;