ramadan/easy-model 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ramadan/easy-model

最新稳定版本:v1.1.8

Composer 安装命令:

composer require ramadan/easy-model

包简介

A Laravel package for enjoyably managing database queries.

README 文档

README

Easy Model

License Latest Version on Packagist Total Downloads

Overview

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:

    • Significantly improved query performance compared to native Laravel.
  • Straightforward and Unified Syntax:

    • Provides a unified, consistent syntax for Query Builder and Eloquent Builder. For more details, see Establish Query.
  • 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. Check out Order Results to learn more.
  • Streamline Batch Updates:

    • Effortlessly perform multiple updates using concise methods, consult update.md.
  • And more...

Installation

Install the package by using Composer:

composer require ramadan/easy-model

Usage

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.

Credits

Support me

License

The MIT License (MIT).

统计信息

  • 总下载量: 1.55k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-30