Real-time error monitoring and AI-powered debugging for Laravel applications
clawdbot/laravel-monitor is a Laravel package for real-time error monitoring and ai-powered debugging for laravel applications.
It currently has 0 GitHub stars and 0 downloads on Packagist (latest version v1.0.0).
Install it with composer require clawdbot/laravel-monitor.
Discover more Laravel packages by clawdbot
or browse all Laravel packages to compare alternatives.
Last updated
Real-time error monitoring, slow query detection, and AI-powered debugging for Laravel applications. Reports issues directly to your Clawdbot instance for automatic analysis, issue creation, and PR generation.
composer require clawdbot/laravel-monitor
Publish the config:
php artisan vendor:publish --tag=clawdbot-monitor-config
Add to your .env:
CLAWDBOT_PROJECT_ID=my-project
CLAWDBOT_WEBHOOK_URL=https://your-clawdbot-gateway/api/monitor
CLAWDBOT_WEBHOOK_SECRET=your-secret-key
# Optional tuning
CLAWDBOT_REPORT_EXCEPTIONS=true
CLAWDBOT_REPORT_SLOW_QUERIES=true
CLAWDBOT_SLOW_QUERY_THRESHOLD=500
CLAWDBOT_REPORT_FAILED_JOBS=true
CLAWDBOT_QUEUE_REPORTS=true
Automatically catches and reports all unhandled exceptions with full context:
// Exceptions are reported automatically. To report manually:
use Clawdbot\Monitor\Facades\ClawdbotMonitor;
ClawdbotMonitor::reportException($exception, [
'custom_context' => 'value',
]);
Monitors all database queries and reports those exceeding the threshold:
CLAWDBOT_SLOW_QUERY_THRESHOLD=500 # milliseconds
Reports include:
Automatically reports failed queue jobs:
Built-in API endpoint for users or support to report issues:
POST /api/clawdbot/complaint
Authorization: Bearer {token}
{
"description": "My balance doesn't update after payment",
"category": "payment",
"steps": "1. Made a payment via Stripe\n2. Checked balance page\n3. Balance still shows old amount",
"expected": "Balance should reflect the payment",
"actual": "Balance unchanged after 10 minutes"
}
Allow Clawdbot to remotely debug issues:
CLAWDBOT_ALLOW_DEBUG_QUERIES=true # Enable read-only SQL queries
CLAWDBOT_ALLOW_IMPERSONATION=true # Enable user context lookup
Available endpoints (HMAC-signed):
POST /api/clawdbot/debug/query - Execute read-only SELECT queriesPOST /api/clawdbot/debug/user-context - Get user info + relationshipsPOST /api/clawdbot/debug/logs - Read application logsReport custom events from anywhere in your app:
use Clawdbot\Monitor\Facades\ClawdbotMonitor;
// Payment webhook failed
ClawdbotMonitor::reportEvent('webhook.failed', [
'provider' => 'stripe',
'event_type' => 'payment_intent.succeeded',
'error' => 'Timeout connecting to database',
]);
// Unusual activity
ClawdbotMonitor::reportEvent('security.unusual_login', [
'user_id' => 123,
'ip' => '1.2.3.4',
'country' => 'XX',
]);
Verify your setup works:
php artisan clawdbot:test
php artisan clawdbot:test --type=slow_query
php artisan clawdbot:test --type=failed_job
php artisan clawdbot:test --type=event
All reports follow this structure:
{
"type": "exception|slow_queries|failed_job|complaint|custom_event|health",
"project_id": "my-project",
"environment": "production",
"server": {
"hostname": "web-01",
"ip": "10.0.0.1",
"php_version": "8.3.0",
"laravel_version": "11.0.0"
},
"timestamp": "2026-01-28T12:00:00.000Z",
"data": { ... }
}
MIT