Easy Model - A Laravel package for enjoyably managing database queries
byโข
๐ฅ Easy Model v2.1.0 is here! Simplify Laravel Eloquent with smarter filtering, sorting, relationships, eager loading, JSON and date filters, soft deletes, mass insert, and upsert support. Built to reduce repetitive code, improve flexibility, and keep your models clean and maintainable.

Replies
๐ Easy Model v2.1.0 is here!
A major update bringing more powerful querying, filtering, relationships, and database operations to Laravel Eloquent.
๐ Request-Driven Queries
Build queries directly from request parameters with controlled filters, sorts, includes, and searches:
โ๏ธ Conditional Query Chaining
Conditionally add query logic with `when()` and `unless()`:
๐ Eager Loading & Relationships
Add relationships and relationship counts dynamically:
Keyword searches now also support dotted relationship columns:
๐ฏ Select, Pagination & SQL Inspection
Control selected columns, paginate results, and inspect generated SQL:
Supports `paginate()`, `simplePaginate()`, and `cursorPaginate()`.
๐ Date, Period & JSON Filtering
Add powerful date, period, and JSON conditions:
๐๏ธ Full Soft Delete Support
Work with trashed models and restore or permanently delete them:
โก Mass Insert & Upsert
Perform efficient bulk writes while optionally supporting model events:
๐ Smarter Relationship Ordering
Relationship joins in `addOrderBy()` now support table aliasing when multiple relationships use the same table.
๐งช Better Testing
v2.1.0 introduces an Orchestra Testbench and PHPUnit test suite to improve reliability and maintainability.
Easy Model v2.1.0 gives Laravel developers more control while reducing repetitive Eloquent query code.
Try it, explore the new features, and share your feedback!