monteiro/telescope-mail-attachments

Mail attachment support for Laravel Telescope

Maintainers

Package info

github.com/monteiro/telescope-mail-attachments

pkg:composer/monteiro/telescope-mail-attachments

Statistics

Installs: 28

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.3.0 2026-02-25 17:58 UTC

This package is auto-updated.

Last update: 2026-03-25 18:15:38 UTC


README

Latest Version on Packagist

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

Captura de ecrã 2026-02-25, às 16 11 14

Testing

composer test

License

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