Added notes to searchable and fillable attributes
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
1f1e1401cf
commit
e6ae9cae6b
4 changed files with 9 additions and 5 deletions
|
@ -71,6 +71,7 @@ class Category extends SnipeModel
|
||||||
'require_acceptance',
|
'require_acceptance',
|
||||||
'use_default_eula',
|
'use_default_eula',
|
||||||
'created_by',
|
'created_by',
|
||||||
|
'notes',
|
||||||
];
|
];
|
||||||
|
|
||||||
use Searchable;
|
use Searchable;
|
||||||
|
@ -80,7 +81,7 @@ class Category extends SnipeModel
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $searchableAttributes = ['name', 'category_type'];
|
protected $searchableAttributes = ['name', 'category_type', 'notes'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The relations and their attributes that should be included when searching the model.
|
* The relations and their attributes that should be included when searching the model.
|
||||||
|
|
|
@ -18,7 +18,8 @@ class Group extends SnipeModel
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'name',
|
'name',
|
||||||
'permissions'
|
'permissions',
|
||||||
|
'notes',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,7 +38,7 @@ class Group extends SnipeModel
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $searchableAttributes = ['name', 'created_at'];
|
protected $searchableAttributes = ['name', 'created_at', 'notes'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The relations and their attributes that should be included when searching the model.
|
* The relations and their attributes that should be included when searching the model.
|
||||||
|
|
|
@ -72,6 +72,7 @@ class Location extends SnipeModel
|
||||||
'currency',
|
'currency',
|
||||||
'manager_id',
|
'manager_id',
|
||||||
'image',
|
'image',
|
||||||
|
'notes',
|
||||||
];
|
];
|
||||||
protected $hidden = ['user_id'];
|
protected $hidden = ['user_id'];
|
||||||
|
|
||||||
|
@ -82,7 +83,7 @@ class Location extends SnipeModel
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $searchableAttributes = ['name', 'address', 'city', 'state', 'zip', 'created_at', 'ldap_ou', 'phone', 'fax'];
|
protected $searchableAttributes = ['name', 'address', 'city', 'state', 'zip', 'created_at', 'ldap_ou', 'phone', 'fax', 'notes'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The relations and their attributes that should be included when searching the model.
|
* The relations and their attributes that should be included when searching the model.
|
||||||
|
|
|
@ -53,6 +53,7 @@ class Manufacturer extends SnipeModel
|
||||||
'support_url',
|
'support_url',
|
||||||
'url',
|
'url',
|
||||||
'warranty_lookup_url',
|
'warranty_lookup_url',
|
||||||
|
'notes',
|
||||||
];
|
];
|
||||||
|
|
||||||
use Searchable;
|
use Searchable;
|
||||||
|
@ -62,7 +63,7 @@ class Manufacturer extends SnipeModel
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $searchableAttributes = ['name', 'created_at'];
|
protected $searchableAttributes = ['name', 'created_at', 'notes'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The relations and their attributes that should be included when searching the model.
|
* The relations and their attributes that should be included when searching the model.
|
||||||
|
|
Loading…
Add table
Reference in a new issue