Flare Error tracking made for Laravel
Features Pricing Docs Log in Start free trial
  • Docs
  • Videos

Documentation

  • General

    • Welcome
    • Projects
    • Errors
    • Error occurrences
    • Sharing error occurrences
    • Spike protection
  • Ignition for Laravel

    • Installation
    • Configuration
    • Controlling collected data
    • Sending logs to Flare
    • Sharing errors
    • Identifying users
    • Adding custom context
    • Adding glows
    • Writing custom middleware
    • Adding custom tabs
    • First party extensions
    • Third party extensions
  • Flare for generic PHP projects

    • Installation
    • Controlling collected data
    • Identifying users
    • Adding custom context
    • Adding glows
    • Writing custom middleware
  • Javascript error tracking

    • Installation
    • Framework integrations
    • Adding custom context
    • Adding glows
    • Solution Providers
    • Resolving Bundled Code
  • Solutions

    • Introduction
    • Adding custom solutions
    • Making solutions runnable
    • Using solution providers
    • Writing good solutions
  • Notifications

    • Configuring notifications
    • Mail
    • Slack
    • SMS
    • Webhooks
  • Team management

    • Using multiple teams
    • Subscribing to a plan
    • Receiving invoices
    • Managing team members
    • Inviting guests to projects

Installation

You can also use Flare in combination with non-Laravel PHP projects. To get started, require the Flare PHP client as a dependency in your PHP project:

composer require facade/flare-client-php

Sending errors to Flare

If you want to send errors to Flare, you must specify a valid API key when registering the generic Flare client. You can get an API key when creating a new project or by visiting the project settings screen for an existing project.

To tell Flare to report all unhandled errors and exception, register the Flare PHP client and give it your API key:

use Facade\FlareClient\Flare;

$flare = Flare::register('YOUR-API-KEY')
  ->registerFlareHandlers();

This will bind Flares exception and error handler and Flare is set up and ready to go.

Previous topic Next topic

On this page

  • Sending errors to Flare

About Flare

  • Home
  • Features
  • Pricing
  • Support

Resources

  • Blog
  • Docs
  • Ignition
  • Videos

App

  • Log in
  • Start free trial
SPATIE
  • Service status
  • Terms of use
  • Privacy & cookie policy