Updated model with new field

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-01-22 00:56:19 -08:00
parent cad76f671a
commit febfcd4803

View file

@ -116,6 +116,7 @@ class Asset extends Depreciable
'next_audit_date' => 'date|nullable',
'last_audit_date' => 'date|nullable',
'supplier_id' => 'exists:suppliers,id|nullable',
'asset_eol_date' => 'date|max:10|min:10|nullable',
];
/**
@ -145,6 +146,7 @@ class Asset extends Depreciable
'last_checkout',
'expected_checkin',
'byod',
'asset_eol_date',
];
use Searchable;
@ -167,6 +169,7 @@ class Asset extends Depreciable
'expected_checkin',
'next_audit_date',
'last_audit_date',
'asset_eol_date',
];
/**
@ -180,7 +183,7 @@ class Asset extends Depreciable
'company' => ['name'],
'defaultLoc' => ['name'],
'location' => ['name'],
'model' => ['name', 'model_number'],
'model' => ['name', 'model_number', 'eol'],
'model.category' => ['name'],
'model.manufacturer' => ['name'],
];