PHP code example of maras0830 / laravel-logslack

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

    

maras0830 / laravel-logslack example snippets


    'providers' => [
    	...
        Maras0830\LogSlack\Providers\LogSlackBotServiceProvider::class,
    ];		


Route::get('slack', function() {

    Log::debug('Slack Log ', ['Slack' => 'Hello']);
});


SLACK_LOG_LEVEL=success,warning,error
SLACK_LOG_CALLBACK_URL=<slack_incoming_callback_url>