feline-studio/laravel-slack-reporter

Downloads

627

Stars

1

Version

v1.0.1

This package has been archived

Laravel-SlackReporter

Latest Version on Packagist Total Downloads Package Test

Report website error to Slack channel.

Installation

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);
        });
    }

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The GNU GPLv3. Please see License for more information.

Feline-Studio

Author

Feline-Studio