Added phone, fax to departments, locations, companies

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2023-07-10 19:44:21 +01:00
parent 2faa73f983
commit 14c61e4c17
20 changed files with 138 additions and 13 deletions
+3 -1
View File
@@ -43,6 +43,8 @@ class Department extends SnipeModel
protected $fillable = [
'user_id',
'name',
'phone',
'fax',
'location_id',
'company_id',
'manager_id',
@@ -56,7 +58,7 @@ class Department extends SnipeModel
*
* @var array
*/
protected $searchableAttributes = ['name', 'notes'];
protected $searchableAttributes = ['name', 'notes', 'phone', 'fax'];
/**
* The relations and their attributes that should be included when searching the model.