monteiro/telescope-mail-attachments
最新稳定版本:0.3.0
Composer 安装命令:
composer require monteiro/telescope-mail-attachments
包简介
Mail attachment support for Laravel Telescope
README 文档
README
Mail attachment support for Laravel Telescope. Captures email attachments (filename, size, MIME type, content) during mail recording, stores them in Telescope entries, and provides download endpoints + UI.
Installation
composer require monteiro/telescope-mail-attachments
Configuration
In your config/telescope.php, replace MailWatcher with MailAttachmentWatcher:
'watchers' => [ // Laravel\Telescope\Watchers\MailWatcher::class => env('TELESCOPE_MAIL_WATCHER', true), Monteiro\TelescopeMailAttachments\MailAttachmentWatcher::class => env('TELESCOPE_MAIL_WATCHER', true), // ... other watchers ],
Optionally publish the config file:
php artisan vendor:publish --tag=telescope-mail-attachments-config
Config Options
| Option | Default | Description |
|---|---|---|
store_content |
true |
Store base64-encoded attachment content. Set to false to only store metadata (filename, size, MIME type) and reduce storage usage. |
You can also set TELESCOPE_MAIL_ATTACHMENTS_STORE_CONTENT=false in your .env.
Features
- Paperclip badge with attachment count on the mail index page
- Attachments table with download links on the mail preview page
- Download endpoint for individual attachments
- Optional content storage toggle to manage database size
Screenshot
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-25