ok, this works but needs to be tested more

This commit is contained in:
slong753
2023-04-04 18:57:51 -05:00
parent 29e3d202fe
commit 3929526a57
5 changed files with 42 additions and 23 deletions
+5
View File
@@ -150,6 +150,11 @@ class AssetModel extends SnipeModel
{
return $this->belongsTo(\App\Models\CustomFieldset::class, 'fieldset_id');
}
public function customFields()
{
return $this->fieldset()->first()->fields();
}
/**
* Establishes the model -> custom field default values relationship