The Problem
Imagine watching a video of every user who encountered a bug in your Laravel app. That's what session replay gives you — complete visual context for every error.
Quick Start with Bugsly
Getting session replay running in Laravel takes about five minutes. Here's how.
Install the SDK:
composer require bugsly/bugsly-laravelAdd the initialization code:
<?php
// config/bugsly.php
return [
"dsn" => env("BUGSLY_DSN"),
"traces_sample_rate" => 1.0,
"send_default_pii" => true,
];That's it. Bugsly starts capturing events immediately. No additional configuration is required for basic session replay, though you'll want to customize the setup as your needs grow.
Going Beyond the Basics
The initial setup captures unhandled errors automatically. To get more value from your Laravel integration:
- Add breadcrumbs to trace user actions leading up to errors. This context is invaluable when debugging complex flows.
- Set up release health to track crash-free session rates across deployments. You'll know instantly if a release introduces regressions.
- Configure integrations with your existing tools. Bugsly connects with Slack, PagerDuty, Jira, GitHub, and more to fit into your workflow.
Why Bugsly for Laravel?
Bugsly's Laravel SDK is purpose-built to hook into the framework's internals. It captures framework-specific context, groups errors intelligently using stack trace analysis, and provides a timeline view of events. Your team spends less time reproducing bugs and more time shipping features.
Next Steps
Once session replay is running, configure privacy rules to mask sensitive user data like passwords and credit card fields. Use replay search to find sessions matching specific criteria — like sessions with rage clicks or error events. Connect replays to error reports for instant visual context during debugging.
Try Bugsly Free
AI-powered error tracking that explains your bugs. Set up in 2 minutes, free forever for small projects.
Get Started FreeRelated Articles
How to Set Up Error Tracking in PHP
Step-by-step tutorial for configuring Bugsly error tracking in PHP. Includes code snippets and optimization tips.
Read moreTesting Error Scenarios in Electron Applications
A practical guide to testing error scenarios in Electron apps covering main process crashes, IPC failures, and renderer error handling.
Read moreBuilding a Nuxt Application Monitoring Dashboard
Set up comprehensive monitoring for Nuxt applications with performance metrics, error tracking, server-side rendering metrics, and user analytics.
Read moreSetting Up Error Tracking in .NET
Learn how to set up error tracking in .NET with Bugsly. Step-by-step guide with code examples and best practices.
Read more