Laravel queryfilter is a simple & dynamic package for your eloquent query in laravel. It will help you to write query logic individual for each parameter.
A test project devoted to replacing Entity Framework Core's global query filters with a more flexible and controllable solution. This is built on top of ABP Framework and runs on .NET 5. This project may also help you understand how to write a custom database provider (which Microsoft haven't documented yet).