PHP code example of rabbit-digital / bugtify-laravel

1. Go to this page and download the library: Download rabbit-digital/bugtify-laravel 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/ */

    

rabbit-digital / bugtify-laravel example snippets


'providers' => [
    // ...
    RabbitDigital\Bugtify\BugtifyServiceProvider::class,
    // ...
],
 
$app->withFacades();
 
$app->register(RabbitDigital\Bugtify\BugtifyServiceProvider::class);

'channels' => [
        'stack' => [
            'driver' => 'stack',
            // Add bugtify to the stack:
            'channels' => ['single', 'bugtify'],
        ],

        // ...

        // Create a bugtify logging channel:
        'bugtify' => [
            'driver' => 'bugtify',
        ],
    ],

public function report(Exception $e)
{
    \RabbitDigital\Bugtify\Facades\Bugtify::notifyException($e);

    parent::report($e);
}

try {
    // Add some error code here
} catch (Exception $ex) {
    \RabbitDigital\Bugtify\Facades\Bugtify::notifyException($ex);
}
sh
php artisan vendor:publish --provider="RabbitDigital\Bugtify\BugtifyServiceProvider" --tag=config
sh
php -r "file_exists('config/') || mkdir('config/'); copy('vendor/rabbit-digital/bugtify-laravel/config/bugtify.php', 'config/bugtify.php');"