- [ ] We dont filter with id. Remove ID from query filter. - [ ] If the field is ending with _id this means that this is a id field. And ID fields are not filtered by <> signs. - [ ] ID's are always brought by id_ref this means that if we want to filter by id, we will get id_ref, take object and filter with that id Example; ``` public function accountChannelId($value) { $accountChannel = AccountChannels::where('id_ref', $value)->first(); if($accountChannel) { return $this->builder->where('accountChannelId', '=', $accountChannel->id); } } ```
Example;