Hi everyone.
I have a model called customer.
I want to make this customer selectable via the browser field. That works so far. However, it always displays all customers, not just the published ones.
After researching, I tried the following in /app/Repositories/CustomerRepository.php
public function getBrowserItemsQuery($query)
{
return $query->where(“published”, 1);
}
But all of them are still displayed.
The status of whether published or not is also set correctly in the database.