if you check CustomFieldTrait there is a relation that can be used to join the models with their custom fields values
* Return custom field relation for specified field name.
* @param $fieldName
* @return mixed
public function customFieldRelation($fieldName)
return $this->morphOne(CustomField::class, 'parent', 'parent_type')
ao I assume you can use it with Model queries.
Please login or Register to submit your answer