I am experiencing a very strange behavior when creating an OR-query on a Filter. I have a DocumentResource - by default I only want to show the documents with the status "draft" and "final". With the Filter I also want to show the documents with status "archive". So i provided this which returns the following query.
parent::getEloquentQuery()->visible(); // select count() as aggregate from