PHP code example of skater4 / laravel-sentry-notifications

1. Go to this page and download the library: Download skater4/laravel-sentry-notifications library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

skater4 / laravel-sentry-notifications example snippets


resolve(SentryNotifier::class)->reportSentryNotification($exception);

public function report(Throwable $exception)
{
    if (app()->bound('sentry') && $this->shouldReport($exception)) {
        resolve(SentryNotifier::class)->reportSentryNotification($exception);
    }

    parent::report($exception);
}