PHP code example of mirbaagheri / eloquent-extra-events
1. Go to this page and download the library: Download mirbaagheri/eloquent-extra-events library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mirbaagheri / eloquent-extra-events example snippets
Event::listen('eloquent.syncing*', function ($eventName, array $eventData) {
//Do something ...
});
`
Event::listen("eloquent.attaching: App\YourCustom\EloquentCustom*", function ($eventName, array $eventData) {
//Do something ...
});