Looking to hire Laravel developers? Try LaraJobs

laravel-client maintained by supernet

Description
Laravel client package for Supernet error tracking
Last update
2026/02/21 12:56 (dev-main)
License
Links
Downloads
40

Comments
comments powered by Disqus

Supernet Laravel Client

A Laravel package that automatically captures and sends exceptions to your Supernet error tracking project.

Installation

composer require supernet/laravel-client

Configuration

Publish the configuration file:

php artisan vendor:publish --tag="supernet-client-config"

Add your API key and endpoint to your .env file:

SUPERNET_API_KEY=your-api-key-here
SUPERNET_API_URL=https://supernet.on-forge.com/api/v1/errors

Usage

Once installed, the package automatically captures all exceptions and sends them to your Supernet project. No additional code is needed.

Manual Reporting

You can also manually report exceptions:

use Supernet\Client\Facades\SupernetClient;

try {
    // risky operation
} catch (\Throwable $e) {
    SupernetClient::captureException($e);
}

Configuration Options

Option Default Description
api_key null Your Supernet project API key
api_url https://supernet.on-forge.com/api/v1/errors API endpoint URL
environments ['production', 'staging'] Only report from these environments (['*'] for all)
report_quietly true Silently catch reporting failures