mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Added manager_id to fillable for locations API
This commit is contained in:
parent
22ef2ce0b6
commit
05ea61421f
|
@ -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'];
|
||||||
|
|
Loading…
Reference in a new issue