PHP code example of feline-studio / laravel-slack-reporter
1. Go to this page and download the library: Download feline-studio/laravel-slack-reporter 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/ */
feline-studio / laravel-slack-reporter example snippets
/**
* Register the exception handling callbacks for the application.
*
* @return void
*/
public function register()
{
$this->reportable(function (Throwable $e) {
SlackReporterFacade::handle($e);
});
}
bash
php artisan vendor:publish --provider="FelineStudio\SlackReporter\SlackReporterServiceProvider"