alanrites / prod-slack-notification
在您的 Slack 频道中实时获取异常通知
dev-main
2021-07-11 09:08 UTC
Requires
Requires (Dev)
- orchestra/testbench: ^6.0
This package is not auto-updated.
Last update: 2024-09-30 22:38:07 UTC
README
在您的 Slack 频道中实时获取异常通知
如果您已安装 Laravel Telescope,则可以使用此包在您的生产应用程序中发生任何异常时向您的 Slack 频道发送通知。这有助于在您的客户报告之前找到并修复错误。
如何配置,步骤是什么
- 需要此包。 <composer require alanrites/prod-slack-notification>
- 发布配置值 <php artisan vendor:publish --provider="Alanrites\ProdSlackNotification\SlackNotificationServiceProvider" --tag="config">
- 根据需要修改 prodslacknotify.php
- 在 TelescopeServiceProvider.php 中添加一行代码到 Telescope::filter SlackNotification::send($entry);