Flare by Spatie
  • Features
  • Pricing
  • Docs
  • Blog
  • LOG IN
  • START TRACKING
  • Home
  • Features
  • Pricing
  • Docs
  • Blog
    • Try Flare for free
    • Sign in
Flare Flare Laravel Laravel PHP PHP JavaScript JavaScript
  • General
  • Introduction
  • Installation
  • Censoring collected data
  • Ignoring collected data
  • Errors
  • Adding custom context
  • Customising error grouping
  • Handling errors
  • Linking to errors
  • Reporting errors
  • Performance
  • Introduction
  • Sampling
  • Limits
  • Modify spans and events
  • Data Collection
  • Application info
  • Application lifecycle
  • Cache events
  • Console commands
  • Customise error report
  • Database transactions
  • Dumps
  • Errors when tracing
  • Exception context
  • External http requests
  • Filesystem operations
  • Git information
  • Glows
  • Identifying users
  • Logs
  • Queries
  • Redis commands
  • Requests
  • Routing
  • Server info
  • Solutions
  • Spans
  • Stacktrace arguments
  • Views
  • Older Packages
  • Flare Client PHP V1

Views

Flare can collect information about the views being rendered in your application. This includes:

  • The view name
  • The view path
  • The view data

This functionality is enabled by default, but you can disable it by calling ignoreViews() on the Flare config:

$config->ignoreViews();

You can configure the maximum number of views tracked while collecting data in the case of an error as such:

$config->collectViews(maxItemsWithErrors: 10);

Collecting views

We cannot automatically collect views in the framework-agnostic version of the package. You can manually add views as such:

$flare->view()->recordRendering(
    name: 'my-view',
    data: [
        'name' => 'Spatie',
    ],
    file: '/path/to/view.blade.php',
);

// Render your view

$flare->view()->recordRendered();
Stacktrace arguments Flare Client PHP V1
  • On this page
  • Collecting views

Monitor your web apps and sites from errors to slowdowns with Flare, the easiest application monitoring platform for Laravel, PHP & Javascript.

  • Platform
  • Error Tracking
  • Performance Monitoring
  • Pricing
  • Support
  • Resources
  • Blog
  • Changelog
  • Documentation
  • Affiliate program
  • Service status
  • Terms of use
  • DPA
  • Privacy & Cookie Policy
Flare