jord-jd/laravel-natural-where
Adds natural-language where methods to Laravel's query builder and Eloquent, so you can write readable filters like whereName(), whereAgeGreaterThan(), and whereCreatedAtAfter() instead of verbose operator-based clauses.
naturalOrWhere macro, reducing boilerplate for conditional OR clauses in admin filters, reporting, and search endpoints.orWhere composition, adopting this package avoids maintaining a custom macro. For one-off query needs, Laravel’s native query builder is sufficient.naturalOrWhere returns the query builder result improves chainability and composability, reducing workaround code and making query logic easier to test and maintain.naturalOrWhere macro across legacy and modern services.where/orWhere already covers your use cases, or if the package’s maintenance cadence and test coverage cannot be validated.naturalOrWhere to return the query builder result, improving chainability. Evaluate test coverage, maintenance activity, and compatibility matrix before standardizing on it.How can I help you explore Laravel packages today?