* Use the formated date helper to clean up verifications.

* Add Checkin/Checkout api tests.

* Accessories api test

* Add Companies API Test.

* Return ModelNotFound as a 404.

* Cleanups/simplficiations/updates.

* Locations api test.

* currency and image should be fillable on location.

* Update components api test.

* Use findOrFail so we return a 404 instead of a 200.  Matches other item types.

* order_number should be fillable in component.

* Add updated_at and permissions to information returned from api for a user.

* Add users test and flesh out factory and fillable fields.

* Add test for assets method

* API status label test.

* Disable php7.2 for now on travis until the count(null) issues are remedied

* Add serial to update.

* API model not found should return a 200
This commit is contained in:
Daniel Meltzer
2018-02-24 22:01:34 -05:00
committed by snipe
parent b6a75093b7
commit 7de8f71f58
20 changed files with 1226 additions and 477 deletions
+13 -1
View File
@@ -45,7 +45,19 @@ class Location extends SnipeModel
*
* @var array
*/
protected $fillable = ['name','parent_id','address','address2','city','state', 'country','zip','ldap_ou'];
protected $fillable = [
'name',
'parent_id',
'address',
'address2',
'city',
'state',
'country',
'zip',
'ldap_ou',
'currency',
'image',
];
protected $hidden = ['user_id'];
public function users()