1. Go to this page and download the library: Download logtracker/laravel 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/ */
logtracker / laravel example snippets
use Illuminate\Support\Facades\Log;
Log::error('Payment capture failed', [
'payment_id' => $payment->id,
]);
use LogTracker\Facades\LogTracker;
LogTracker::withContext(['tenant' => $tenant->uuid]);
LogTracker::identifyUser($customer->getKey()); // HMAC only; the ID is not stored
LogTracker::groupBy('payment-provider');
LogTracker::capture($exception);
LogTracker::capture('Checkout degraded', ['provider' => 'acme'], 'warning');