rentmarket / eleqhant
This package is abandoned and no longer maintained.
No replacement package was suggested.
Eloquent extension to provide a little bit more functionality. Works for both L4 and L5
v1.1.3
2015-11-02 02:14 UTC
Requires
- php: >=5.3.0
- illuminate/support: ~5.1
Requires (Dev)
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
This package is not auto-updated.
Last update: 2020-05-29 18:44:04 UTC
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.