PHP code example of jeroen-g / activity-logger
1. Go to this page and download the library: Download jeroen-g/activity-logger 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/ */
jeroen-g / activity-logger example snippets
Activity::log($message, $context, $date);
Activity::getAllLogs();
Activity::getLog(1);
$yesterday = Carbon\Carbon::yesterday();
$tomorrow = Carbon\Carbon::tomorrow();
Activity::getLogsBetween($yesterday, $tomorrow);
Activity::getRecentLogs(10);