PHP code example of smcrow / laravel-slack-log
1. Go to this page and download the library: Download smcrow/laravel-slack-log 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/ */
smcrow / laravel-slack-log example snippets
public function register()
{
$this->app->register(SlackLogServiceProvider::class);
}
'SlackLog' => \Smcrow\SlackLog\Facades\SlackLog::class
$user = ['name' => 'John', 'age' => 65];
if (SlackLog::isDebugEnabled()) {
SlackLog::debug('User: ' . print_r($user, true));
}