PHP code example of codexpedite / laravel-supabase-logger
1. Go to this page and download the library: Download codexpedite/laravel-supabase-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/ */
codexpedite / laravel-supabase-logger example snippets
use Codexpedite\LaravelSupabaseLogger\Models\LaravelLog;
// Find logs by criteria
$criticalLogs = LaravelLog::level('error')
->forApp('my-app')
->forEnvironment('production')
->recent(24) // last 24 hours
->get();
// Update log status
$log = LaravelLog::find($id);
$log->acknowledge(); // Mark as acknowledged
$log->resolve(); // Mark as resolved
$log->reopen(); // Reopen (mark as new)