PHPackages                             ghadeer/lara-mail-preview - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. ghadeer/lara-mail-preview

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

ghadeer/lara-mail-preview
=========================

Preview mailable in browser while development.

v1.1(1y ago)14MITPHPPHP &gt;=8.1

Since Nov 28Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/GhadeerHamed/lara-mail-preview)[ Packagist](https://packagist.org/packages/ghadeer/lara-mail-preview)[ RSS](/packages/ghadeer-lara-mail-preview/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

lara-mail-preview
=================

[](#lara-mail-preview)

Laravel Mail Preview
====================

[](#laravel-mail-preview)

A Laravel package that allows you to preview and customize mailables directly from the browser. It scans your Laravel project for mail classes, displays them in a dropdown, and allows you to input constructor parameters. When the fields are filled, the package renders the email template as HTML for preview.

Features
--------

[](#features)

- Scans the `App/Mail` directory for available mail classes.
- Displays mail classes in a dropdown when visiting the `/mail-preview` route.
- Displays constructor parameters for each selected mail class.
- Automatically detects if a constructor parameter is a **Model** or **Enum**:
    - If it's a **Model** (e.g., `App\Models\User`), a dropdown to select an existing record is generated.
    - If it's an **Enum**, a dropdown with all available enum options is shown.
- Renders the mail's Blade file as HTML once all required parameters are filled and submitted.

Installation
------------

[](#installation)

### Step 1: Install via Composer

[](#step-1-install-via-composer)

Run the following command to install the package via Composer:

```
composer require ghadeer/lara-mail-preview
```

Images
------

[](#images)

#### Select mail class:

[](#select-mail-class)

[![Dropdown to select mailable](images/mail-class-select.png)](images/mail-class-select.png)

#### Fill the fields:

[](#fill-the-fields)

[![Fields](images/fields.png)](images/fields.png)

#### See result:

[](#see-result)

[![Result](images/result.png)](images/result.png)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance49

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

527d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/567e9cbb6db69ac8c8111201f9362abc51a443482c7c715e095fed403e779411?d=identicon)[GhadeerHamed](/maintainers/GhadeerHamed)

---

Top Contributors

[![GhadeerHamed](https://avatars.githubusercontent.com/u/18430822?v=4)](https://github.com/GhadeerHamed "GhadeerHamed (9 commits)")

### Embed Badge

![Health badge](/badges/ghadeer-lara-mail-preview/health.svg)

```
[![Health](https://phpackages.com/badges/ghadeer-lara-mail-preview/health.svg)](https://phpackages.com/packages/ghadeer-lara-mail-preview)
```

###  Alternatives

[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[illuminate/mail

The Illuminate Mail package.

5910.1M390](/packages/illuminate-mail)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
