A Laravel package for enjoyably managing database queries.
ramadan/easy-model is a Laravel package for a laravel package for enjoyably managing database queries..
It currently has 11 GitHub stars and 1.559 downloads on Packagist (latest version v2.0.0).
Install it with composer require ramadan/easy-model.
Discover more Laravel packages by ramadan
or browse all Laravel packages to compare alternatives.
Last updated

Why this package?
I am focused on simplifying the syntax to match my vision, making it easier for you to perform tasks that typically require more lines of code or effort in Laravel. I am also addressing issues that Laravel still faces. The package is actively maintained, and I regularly review closed PRs in Laravel to find methods to help achieve this.
What makes this package featured?
Accelerated Query Performance:
Straightforward and Unified Syntax:
Query Builder and Eloquent Builder. For more details, see Establish Query.Resolved Ambiguous Exception:
Simplified Relationship Ordering:
HasOne, HasMany, BelongsTo, BelongsToMany) without referring to manual joins. Check out Order Results to learn more.Streamline Batch Updates:
Polymorphic & Through Relationship Ordering:
MorphOne, MorphMany, MorphToMany, HasOneThrough, and HasManyThrough relationships using safe LEFT JOIN handling and automatic per-query join deduplication.Aggregate Ordering Helpers:
COUNT, SUM, AVG, MIN, or MAX of a related relationship via addOrderByCount / addOrderByAggregate.Keyword Search Across Columns:
LIKE/= search across multiple columns with addKeywordSearch.Drop-in Facade:
EasyModel::for(User::class)->... from anywhere.And more...
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 highest priority will be given to the Searchable trait.
For comprehensive examples and in-depth usage guidelines, check out SEARCH.md and UPDATE.md.
The MIT License (MIT).