axn/laravel-database-extension
Composer 安装命令:
composer require axn/laravel-database-extension
包简介
Extension of the database section of the Laravel framework
README 文档
README
Extensions and improvements to the Database section of Laravel Framework.
Features
- Natural sorting: Sort results naturally (1, 2, 10 instead of 1, 10, 2)
- Default order: Automatically apply sorting on model queries
- Joins using relationships: Perform SQL joins using Eloquent relationships
- whereHasIn: Performant alternative to
whereHas()usingINinstead ofEXISTS - whereLike: Simplified search across multiple columns and relationships
- Extended SoftDeletes:
withoutTrashedExcept()scope
Requirements
- PHP 8.4+
- Laravel 12+
Installation
composer require axn/laravel-database-extension
The service provider is automatically discovered by Laravel.
Documentation
Full documentation is available in the docs folder.
Upgrade guide
See UPGRADE.md for instructions on upgrading between major versions.
License
This package is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 2.72k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-20