rentmarket/eleqhant
最新稳定版本:v1.1.3
Composer 安装命令:
composer require rentmarket/eleqhant
包简介
Eloquent extension to provide a little bit more functionality. Works for both L4 and L5
关键字:
README 文档
README
I created this small class to adjust eloquent a little bit. When extending the class with your model you will get following functionality:
- All database table names are in plural (
users). - All table ID keys prefix the table name in singular (users table has primary key user_id).
- If user is logged in and edits database data, then Eleqhant automatically updates table created_by, updated_by and deleted_by columns (if they exist in table)
Install
Via Composer
$ composer require rentmarket/eleqhant
Usage
Changes your models from extending Eloquent to Eleqhant and you are good to go
use Rentmarket\Eleqhant; class User extends Eleqhant { // ... }
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Tests have not been written. Sorry :)
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email :author_email instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-11-02