PHP code example of dtdi / laravel-eventlog
1. Go to this page and download the library: Download dtdi/laravel-eventlog 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/ */
dtdi / laravel-eventlog example snippets
return [
/*
* This model will be used as base event.
* and extend Illuminate\Database\Eloquent\Model.
*/
'event_model' => null,
'event_id' => 'id',
'timestamp' => 'created_at',
'event_name' => 'action_type',
];
$logPath = eventlog()->setupForSnipeIt()->setLogExporter(new OCEL1)->write();
bash
php artisan vendor:publish --tag="laravel-eventlog-config"