get custom field by slug in models

This commit is contained in:
harshjagad20
2021-05-22 13:52:30 +05:30
parent 5ccc9eba4c
commit 83234cfac3
4 changed files with 20 additions and 0 deletions

View File

@ -510,4 +510,9 @@ class Estimate extends Model implements HasMedia
'{ESTIMATE_LINK}' => url('/customer/estimates/pdf/'.$this->unique_hash),
];
}
public function getValues($slug)
{
return $this->getCustomFieldValues($slug);
}
}