Releases: reinink/advanced-eloquent
Releases · reinink/advanced-eloquent
v0.2.0
- Converted all macros to
Query\Builder
macros. They can now be used with both Eloquent models, or directly via the query builder. - Fixed the order bindings, which were not being applied properly.
- Added an
orderBySubAsc
macro to compliement theorderBySubDesc
macro. - Added a validation check to ensure the order sort direction is either "asc" or "desc". This is especially important if this is an unsanitized value.
- Added the ability to define the null position (
NULLS FIRST
andNULLS LAST
). This is not supported by all databases (ie. MySQL and SQLite), but is supported by PostgreSQL and others.