PHP code example of kevariable / laravel-slack-logging

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

    

kevariable / laravel-slack-logging example snippets


'channels' => [
    'stack' => [
        'driver' => 'stack',
        'channels' => ['single', 'slack'],
        ...
    ],

    'slack' => [
        'driver' => 'slack-logging',
        ...
    ],
],

'environments' => [
    'production',
],

'except' => [
    Symfony\Component\HttpKernel\Exception\NotFoundHttpException::class,
],

'sleep' => [60, 120, 300],

'sleep' => [],

use Kevariable\SlackLogging\Facades\SlackLogging;

SlackLogging::fake();

// trigger exception...

SlackLogging::assertRequestsSent(1);
bash
php artisan vendor:publish --tag="laravel-slack-logging-config"