Download the PHP package alive2212/laravel-model-event-service without Composer
On this page you can find all versions of the php package alive2212/laravel-model-event-service. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alive2212/laravel-model-event-service
More information about alive2212/laravel-model-event-service
Files in alive2212/laravel-model-event-service
Package laravel-model-event-service
Short Description This package to simplisafe model events to fire some jobs
License MIT
Homepage https://github.com/Alive2212/LaravelModelEventService
Informations about the package laravel-model-event-service
LaravelModelEventService
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
Structure
If any of the following are applicable to your project, then the directory structure should follow industry best practices by being named the following.
Install
Via Composer
Usage
Base Observer Help to create event listener simple
1- Create your own Observer file and locate it into app/Observers
2- Extend it from BaseObserver form this Package
3- Override boot method in your Model what you want to track events
4- Put following code into "boot" of your model after "parent::boot();"
5- add what event you want into event service provider with this convention
6- generate events
7- extend all event with 'BaseModelEvent' or 'BaseModelPivotEvent' and remove all class code
8- get model in listener class with following command
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Babak Nodoust
- All Contributors
License
The MIT License (MIT). Please see License File for more information.