DEV Community

Mahmoud Ramadan
Mahmoud Ramadan

Posted on

πŸŽ‰ The key evolution of the Easy Model package is here with v1.0.8 πŸŽ‰

The v1.0.8 has been released with the following new elegant features:

  • Add the ability to order the result using the HasOne, HasMany, BelongsTo, and BelongsToMany relationships which keeps you from performing the "join" manually.
  • Add the ability to use the Local Scopes and Global Scopes in one place.

In Laravel, ordering results by model relationships typically requires manual "join" queries, which can be time-consuming. Easy Model simplifies this process by intelligently guessing the foreign and primary keys needed for the join, based on the relationship type. Furthermore, it allows you to use Local and Global Scopes seamlessly in one place, WITHOUT overriding the global scopes already defined in the model.

easy-model-vs-laravel

Also, it comes with the following improvements:

Fix the issue of ordering the result by model relationship.
Optimize the query time.

Full Changelog: v1.0.7...v1.0.8

Enjoy and don’t miss out on the next release. ✨

Top comments (0)