dinesh / bugonemail
该软件包已被废弃,不再维护。未建议替代软件包。
通过电子邮件获取Laravel错误或bug即时通知
V2.1
2016-07-11 10:15 UTC
Requires
- php: >=5.4.0
- illuminate/support: 5.x
This package is not auto-updated.
Last update: 2020-08-16 20:31:15 UTC
README
首先,通过Composer安装此软件包。编辑您的项目 composer.json
文件,以要求 dinesh/bugonemail
。
"require": {
"laravel/framework": "5.*",
"dinesh/bugonemail": "5.*@dev"
}
接下来,在终端中更新Composer
composer update
此操作完成后,下一步是添加服务提供者。打开 app/config/app.php
,并在提供者数组中添加一个新条目。
'Dinesh\Bugonemail\BugonemailServiceProvider'
接下来,您需要发布其配置文件。
php artisan config:publish dinesh/bugonemail
现在更改配置文件。
return array( 'project_name' => '? ', 'notify_emails' => array('your-email@gmail.com'), 'email_template' => "bugonemail::email.notifyException", 'notify_environment' => array('local','production'), 'prevent_exception' => array('Symfony\Component\HttpKernel\Exception\NotFoundHttpException'), );
手动调用
BugeException::notifyException($exception)
手动设置环境
BugeException::setEnvironment("local")
电子邮件格式