From 05ea61421ffcf668461d6101df4a6d51e5175e07 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 7 Sep 2018 18:11:38 -0700 Subject: [PATCH] Added manager_id to fillable for locations API --- app/Models/Location.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Models/Location.php b/app/Models/Location.php index 1e676854c3..d0cbec3fdc 100755 --- a/app/Models/Location.php +++ b/app/Models/Location.php @@ -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'];