lobotomised/laravel-mailable-exception 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lobotomised/laravel-mailable-exception

最新稳定版本:1.1.0

Composer 安装命令:

composer require lobotomised/laravel-mailable-exception

包简介

Send any exception to an email

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require lobotomised/laravel-mailable-exception

Modifier App\Exceptions\Handler;

    public function register(): void
    {
        $this->reportable(function (Throwable $e) {
            (new LaravelMailableException)->toMail($e);
        });
    }

You can publish the config file with:

php artisan vendor:publish --tag="laravel-mailable-exception-config"

This is the contents of the published config file:

return [
    'from' => [
        'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
        'name' => env('MAIL_FROM_NAME', 'Example'),
    ],
    'to' => [
        'address' => 'your@example.com',
    ],
    'subject' => 'An exception has occurred',
    'allowed_environments' => ['production'],
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="laravel-mailable-exception-views"

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 733
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固