PHP code example of xzxzyzyz / laravel-logging-rollbar

1. Go to this page and download the library: Download xzxzyzyz/laravel-logging-rollbar 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/ */

    

xzxzyzyz / laravel-logging-rollbar example snippets


    'channels' => [
        'stack' => [
            'driver'   => 'stack',
            'channels' => ['single', 'rollbar'],
        ],

        // ...
        
        'rollbar' => [
            'driver' => 'custom',
            'access_token' => env('LOG_ROLLBAR_TOKEN'),
            'via' => Xzxzyzyz\Laravel\Logging\Rollbar\RollbarLogger::class
        ],
    ]

composer dump-autoload