Downloads
Stars
Version
Report website error to Slack channel.
You can install the package via composer:
composer require feline-studio/laravel-slack-reporter
You will need to publish the config file of this package with this command:
php artisan vendor:publish --provider="FelineStudio\SlackReporter\SlackReporterServiceProvider"
The config file will be published in config/slack-reporter.php
.
You will need to edit the config file and setup the Slack's incoming webhook url.
After configuring the package, you can use it to handle error by modifying the register
function in App\Exceptions\Handler
.
/**
* Register the exception handling callbacks for the application.
*
* @return void
*/
public function register()
{
$this->reportable(function (Throwable $e) {
SlackReporterFacade::handle($e);
});
}
composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The GNU GPLv3. Please see License for more information.