mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-14 00:34:05 +00:00
update implementation
This commit is contained in:
@@ -43,9 +43,9 @@ trait HasCustomFieldsTrait
|
||||
}
|
||||
}
|
||||
|
||||
public function getCustomFieldValues($slug)
|
||||
public function getCustomFieldBySlug($slug)
|
||||
{
|
||||
return $this->fields()->whereHas('customField', function ($query) use ($slug) {
|
||||
return $this->fields()->with('customField')->whereHas('customField', function ($query) use ($slug) {
|
||||
$query->where('slug', $slug);
|
||||
})->first();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user