Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/znck/plug
A collection of pluggable traits for Eloquent (Laravel) models
https://github.com/znck/plug
database eloquent laravel plug
Last synced: 2 months ago
JSON representation
A collection of pluggable traits for Eloquent (Laravel) models
- Host: GitHub
- URL: https://github.com/znck/plug
- Owner: znck
- License: mit
- Created: 2016-01-30T00:57:19.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-27T15:03:06.000Z (over 8 years ago)
- Last Synced: 2024-09-19T19:26:04.554Z (4 months ago)
- Topics: database, eloquent, laravel, plug
- Language: PHP
- Homepage:
- Size: 134 KB
- Stars: 13
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Plug
====
A collection of pluggable [Eloquent](https://laravel.com/docs/master/eloquent) traits to enhance your Models.![Plug](cover.png)
## Installation
Either [PHP](https://php.net) 7.0+ is required.
To get the latest version of Plug, simply require the project using [Composer](https://getcomposer.org):
```bash
$ composer require znck/plug
```Instead, you may of course manually update your require block and run `composer update` if you so choose:
```json
{
"require": {
"znck/plug": "^0.1"
}
}
```Once Plug is installed, you can use the plug[gable] traits.
## Usage
All features of Plug are provided as traits, so you can directly put them in you model class. Traits would automatically boot. No configuration is required.
```php