Added manager_id to fillable for locations API

This commit is contained in:
snipe 2018-09-07 18:11:38 -07:00
parent 22ef2ce0b6
commit 05ea61421f

View file

@ -26,7 +26,7 @@ class Location extends SnipeModel
'address' => 'max:80|nullable', 'address' => 'max:80|nullable',
'address2' => 'max:80|nullable', 'address2' => 'max:80|nullable',
'zip' => 'min:3|max:10|nullable', 'zip' => 'min:3|max:10|nullable',
// 'manager_id' => 'exists:users' 'manager_id' => 'exists:users,id|nullable'
); );
/** /**
@ -57,6 +57,7 @@ class Location extends SnipeModel
'zip', 'zip',
'ldap_ou', 'ldap_ou',
'currency', 'currency',
'manager_id',
'image', 'image',
]; ];
protected $hidden = ['user_id']; protected $hidden = ['user_id'];