1. Go to this page and download the library: Download chaseconey/laravel-activity 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/ */
use Chaseconey\ActivityRecorder\RecordsActivity;
Class Tweet extends Model
{
use RecordsActivity;
}
Class Tweet extends Model
{
use RecordsActivity;
/**
* Which events to record for the auth'd user.
*
* @var array
*/
protected static $recordEvents = ['created'];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.