mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04: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