What makes this package featured?
-
Accelerated Query Performance:
- Significantly improved query performance compared to native Laravel (fig. 1.).
-
Straightforward and Unified Syntax:
- Provides a unified, consistent syntax for
Query Builder
andEloquent Builder
.
- Provides a unified, consistent syntax for
-
Resolved Ambiguous Exception:
- Fixes the ambiguous exception that arises when using the same column in both models and their relationships during ordering.
-
Simplified Relationship Ordering:
- Easily order results by model relationships (
HasOne
,HasMany
,BelongsTo
,BelongsToMany
) without referring to manual joins (fig. 3.).
- Easily order results by model relationships (
-
Streamline Batch Updates:
- Effortlessly perform multiple updates using concise methods. For detailed information, consult update.md.
The package was considerably FASTER than the Laravel query when tested on over 1k records (fig. 2.). 🥵
Install the package by using Composer:
composer require ramadan/easy-model
Warning
Do not use both traits together, as doing so may lead to unexpected output. However, if you do, the most priority will be given to the Searchable trait.
Check out search.md for comprehensive examples and in-depth usage guidelines.
Check out update.md for comprehensive examples and in-depth usage guidelines.
The MIT License (MIT).