rdehnhardt / model-observers
Make model observers easy
1.0.2
2017-07-06 16:20 UTC
Requires
- php: >=5.5.0
- illuminate/database: 5.*
Requires (Dev)
- phpspec/phpspec: ~2.1
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-10-07 01:15:25 UTC
README
Set observer for model
Installation
Run the following command to get the latest version package
composer require rdehnhardt/model-observer
// app/Customer.php namespace App; use Illuminate\Database\Eloquent\Model; use Rdehnhardt\ModelObserver\ModelObserver; class Customer extends Model { use ModelObserver; /** * Models Observer * * @var string */ protected static $observer = UserObserver::class; }
Contributing
Contributions are welcomed; to keep things organized, all bugs and requests should be opened on github issues tab for the main project in the rdehnhardt/model-observer/issues.
All pull requests should be made to the branch Develop, so they can be tested before being merged into the master branch.
Having problems?
If you are having problems with the use of this package, there is likely someone has faced the same problem. You can find common answers to their problems:
License
The model-observer package is open source software licensed under the license MIT