mohammad-fouladgar/eloquent-builder
/users?age_more_than=25&status=active), reducing backend complexity for ad-hoc queries.Adopt when:
if ($request->has()) conditions.Look elsewhere if:
spatie/laravel-query-builder).To Executives:
"This package lets us build APIs and internal tools with dynamic filtering—like Google Sheets for our data—without writing spaghetti if conditions. For example, a sales team could filter users by age, region, and last_activity_date via a URL or form, and the backend handles it automatically. It cuts dev time by 30% for common query patterns and keeps our codebase clean. The tradeoff? Minimal performance impact for most use cases, and we can always optimize later if needed."
To Engineers: "This replaces boilerplate like:
if ($request->has('age')) $query->where('age', '>', $request->age);
with:
$query = EloquentBuilder::build(User::query(), $request->all());
Key benefits:
contains, not_in) via configuration.
Downsides: No active maintenance (but MIT license means we can fork if needed). Best for CRUD-heavy apps or APIs where filtering is a core feature."How can I help you explore Laravel packages today?