Skip to main content
← All integrations
Laravel profiler + performance monitoring

Profile Laravel requests, queue jobs, and Artisan commands with production-ready performance monitoring

Perfbase helps Laravel teams find slow routes, N+1 queries, background job regressions, and command bottlenecks with one package and minimal setup.

Profile HTTP requests
Trace queue jobs and Artisan commands
Find N+1s and slow queries

Why teams choose Perfbase for Laravel

Auto-discovered package with middleware and events

Works across HTTP, jobs, and Artisan contexts

Fail-open design for production Laravel apps

L

Laravel

Automatic performance monitoring for Laravel applications

Supported versions

Laravel 8-13 / PHP 7.4-8.5

Quick install

composer require perfbase/laravel:^1.0

Starter config

# .env
PERFBASE_ENABLED=true
PERFBASE_API_KEY=your-api-key
PERFBASE_SAMPLE_RATE=0.1

Use cases

Why teams use Perfbase for Laravel

Perfbase is built for teams that need more than a local debug toolbar. It brings production-facing traces, framework-specific context, and shared visibility across the slow paths that matter most in Laravel.

Catch slow routes before users do

See which controllers, middleware, and database calls are stretching request time in production.

Debug job and command regressions

Profile queued jobs and Artisan commands without adding one-off instrumentation to every workload.

Give the whole team the same view

Turn framework-specific traces into something developers, leads, and reviewers can all act on quickly.

Profiling coverage

What gets profiled and how Perfbase works in Laravel

Perfbase stays framework-aware while keeping setup light. These are the behaviors and operational paths this integration is built to expose.

HTTP profiling

Wrap HTTP requests with middleware, then let sampling, filters, and the status-code allowlist decide which traces are submitted.

Queue job profiling

Queued jobs are profiled automatically via Laravel queue events with no job-level code changes.

Artisan command profiling

Artisan commands are profiled automatically so maintenance and deployment scripts are visible too.

Include and exclude filters

Filter by route pattern, regex, controller reference, job class, or Artisan command with separate HTTP, jobs, and Artisan rules.

Per-user profiling control

Implement ProfiledUser on your User model to decide which authenticated users should be profiled.

Facade access

Use the Perfbase facade to attach attributes or add manual spans alongside automatic instrumentation.

FAQ

Laravel profiler and performance monitoring FAQ

Can Perfbase profile Laravel queue jobs processed by Horizon?

Yes. Perfbase profiles queued jobs through Laravel queue events. Long-running worker commands such as queue:work are excluded by default, while individual jobs still get traces.

Will Perfbase slow down my Laravel production app?

Perfbase is designed to fail open and keep application overhead low. Sampling and filtering happen early so unsampled work avoids starting an extension trace span.

Does Perfbase help with Laravel N+1 queries?

Yes. Perfbase captures database activity alongside request traces so you can spot repeated query patterns, slow Eloquent calls, and route-specific regressions quickly.

Start profiling

Ready to start profiling production traffic?

Create a project, install the package, and start capturing framework-level traces in minutes.