streply/streply-laravel

Streply Laravel SDK

0.0.23 2024-02-16 09:11 UTC

This package is auto-updated.

Last update: 2024-02-16 09:12:10 UTC


README

Install

Install the streply/streply-laravel package:

composer require streply/streply-laravel

Add the service provider to config/app.php

Streply\StreplyLaravel\ServiceProvider::class,

Enable capturing exception in App/Exceptions/Handler.php:

public function register()
{
    $this->reportable(function (Throwable $e) {
        try {
            \Streply\Exception($e);
        } catch(\Exception $e) {}
    });
}

Configure

Configure the Streply DSN with this command:

php artisan streply-laravel:publish https://clientPublicKey@api.streply.com/projectId