PHP code example of jimchen / laravel-trigger
1. Go to this page and download the library: Download jimchen/laravel-trigger 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/ */
jimchen / laravel-trigger example snippets
namespace App\Listeners;
use JimChen\Trigger\EventSubscriber;
class ExampeSubscriber extends EventSubscriber
{
public function onUpdate(UpdateRowsDTO $event)
{
//
}
public function onDelete(DeleteRowsDTO $event)
{
//
}
public function onWrite(WriteRowsDTO $event)
{
//
}