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',
'address2' => 'max:80|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',
'ldap_ou',
'currency',
'manager_id',
'image',
];
protected $hidden = ['user_id'];