atolye15/slack-exception-bundle
Illuminate\Foundation\Bootstrap\HandleExceptions) for finer-grained control (e.g., filtering exceptions by type/severity).App\Exceptions\Handler).AppKernel.php (Laravel 4/5.x), which is obsolete in Laravel 8+ (replaced by config/app.php for service providers).guzzlehttp/guzzle used for HTTP requests).throw_exception: true is set, which may crash the app).report() method + a Slack webhook listener (e.g., via spatie/laravel-slack-notifier)?throw_if() in Handler)?App\Exceptions\Handler), requiring minimal changes.AppKernel.php (Laravel 5.x) or use a custom service provider (Laravel 8+).report() + SlackClient (e.g., slack.phar) for more control.throw_exception: true to verify Slack integration.composer.json (use dev-master).AppKernel.php..env with Slack token/channel.AppKernel is deprecated).php artisan vendor:publish.register() to manually bind the bundle.App\Exceptions\Handler to exclude non-critical errors (e.g., 404s).request()->ip(), auth()->user(), etc.| Component | Risk Level | Mitigation |
|---|---|---|
| PHP Version | High | Use rector/rector to upgrade code. |
| Laravel Version | High | Wrap in a service provider for Laravel 8+. |
| Slack API | Medium | Test with Slack’s API simulator. |
| Exception Handler | Medium | Override render() to avoid conflicts. |
| Queue/Async Support | Critical | Not supported → Use Spatie instead. |
1/0 in a route).HttpException).guzzlehttp/guzzle for vulnerabilities.throw_exception: true).Mockery in tests to avoid real API calls.request_timeout: 3000ms).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Slack API Down | Lost error visibility | Fallback to file/database logging. |
| Invalid Slack Token | All notifications fail silently | Validate token on startup. |
| Rate Limit Exceeded | Throttled requests | Implement |
How can I help you explore Laravel packages today?