PHP code example of bitfumes / laravel-activity-recorder
1. Go to this page and download the library: Download bitfumes/laravel-activity-recorder 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/ */
bitfumes / laravel-activity-recorder example snippets
use Illuminate\Database\Eloquent\Model;
use Bitfumes\Activity\Traits\RecordActivity;
class Item extends Model
{
use RecordActivity;
}
class Item extends Model
{
use RecordActivity;
protected static $eventsToRecord = ['created','deleted'];
}