Looking to hire Laravel developers? Try LaraJobs

laravel-slack-reporter maintained by feline-studio

Author
Last update
2022/12/31 05:01 (dev-main)
Downloads
634

Comments
comments powered by Disqus

Laravel-SlackReporter

Latest Version on Packagist Total Downloads Package Test

Report website error to Slack channel.

Deprecated: Please use Laravel's Slack logging channel instead!

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 david@feline.studio instead of using the issue tracker.

Credits

License

The GNU GPLv3. Please see License for more information.