PHP code example of techcontributors / logpulse
1. Go to this page and download the library: Download techcontributors/logpulse 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/ */
techcontributors / logpulse example snippets
use LogPulse;
LogPulse::log(
'User Login', // action
'Auth', // resource
[ // meta (optional extra data)
'user_id' => auth()->id(),
'ip' => request()->ip(),
'message' => 'User accessed logs page'
],
auth()->id() // app user id (optional)
);
bash
php artisan vendor:publish --tag=log-pulse-config