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

@ -446,4 +446,9 @@ class Payment extends Model implements HasMedia
'{PAYMENT_LINK}' => $this->paymentPdfUrl,
];
}
public function getValues($slug)
{
return $this->getCustomFieldValues($slug);
}
}