This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
jvanremoortere
Is it possible to filter by custom attributes and if so HOW?
For example:
/**
* Get is_customer attribute
*/
public function getIsCustomerAttribute()
{
$is_customer = false;
foreach($this->technologies as $technology){
if($technology->pivot->is_customer){
$is_customer = true;
}
}
return $is_customer;
}
Now we know if we return $this->is_customer
if the company is a customer but how to create a filter for this?
Last updated
1-1 of 1