n7olkachev/laravel-filterable
A lightweight Laravel package for filtering Eloquent models using request query parameters. Define allowed filters on your model, then let the package apply them automatically, keeping controllers clean and filter logic reusable.
$filterable property supports shipping user-facing filtering/search safely by making allowed filter fields explicit on models. PMs can approve filter features with a clearer security boundary rather than relying on ad-hoc request-to-query logic.$filterable is absent, and check the upgrade guide before tying roadmap work to v2.$filterable as a product contract: every exposed filter field should be intentionally approved. This helps prevent accidental exposure of internal columns and reduces the chance of costly or abusive query patterns.$filterable declarations alongside model changes.For executives: This release adds a security-oriented $filterable property that makes allowed filter fields explicit. It supports faster delivery of safe search/filter features and reduces the risk of accidental data exposure through query parameters. Because it is a v2.0.0 major release, treat it as a planned upgrade with regression testing rather than an automatic patch.
For engineering: Adopt the $filterable allowlist as the standard way to expose model filtering. Audit existing endpoints for sensitive fields, confirm behavior when the property is not defined, add regression tests for filter bypass and query cost, and document the model-level filtering contract before rolling v2.0.0 into production.
How can I help you explore Laravel packages today?