PHPackages                             gwdhost/nova-mail-testing - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. gwdhost/nova-mail-testing

ActiveLibrary[Testing &amp; Quality](/categories/testing)

gwdhost/nova-mail-testing
=========================

A Laravel Nova Mail testing tool.

0.1.4(5y ago)1561[1 issues](https://github.com/gwdhost/nova-mail-testing/issues)MITPHPPHP &gt;=7.1.0

Since Jul 11Pushed 5y agoCompare

[ Source](https://github.com/gwdhost/nova-mail-testing)[ Packagist](https://packagist.org/packages/gwdhost/nova-mail-testing)[ RSS](/packages/gwdhost-nova-mail-testing/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Mail testing for Laravel Nova
=============================

[](#mail-testing-for-laravel-nova)

This tool will give you an view to show mail templates with correct data, which you can setup. The only thing you need to do is to setup the config file after that every thing will take care of it self.

To install you can run the following:
-------------------------------------

[](#to-install-you-can-run-the-following)

```
composer require gwdhost/nova-mail-testing

// And afterwards

php artisan vendor:publish --provider="Gwdhost\MailTesting\ToolServiceProvider"

```

And then add the following to the `tools()` method array in the `NovaServiceProvider`:

```
return [
     new \Gwdhost\MailTesting\MailTesting()
];
```

Here you can see an example of the mail testing config file.

```
return [
    'mails' => [
        [
            'label' => 'Welcome mail',
            'class' => \App\Mail\WelcomeMail::class,
            'args' => [
                \App\Nova\User::class,
                [
                    'type' => 'text',
                    'label' => 'Textfield',
                    'placeholder' => 'Placeholder'
                ],
                [
                    'type' => 'textarea',
                    'label' => 'Textarea',
                    'placeholder' => 'Placeholder'
                ],
                [
                    'type' => 'select',
                    'label' => 'Select',
                    'options' => [
                        'a' => 'Answer A',
                        'b' => 'Answer B',
                        'c' => 'Answer C',
                    ]
                ],
            ]
        ],
    ]
];
```

You can use Nova resources or custom fields like `text`, `textarea` or `select`. These fields will add as arguments to your mails.

So if you need the following for an Welcome mail, as example:

```
namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use App\Models\User;

class WelcomeMail extends Mailable
{
    use Queueable, SerializesModels;

    protected $user;

    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct(User $user)
    {
        $this->user = $user;
    }

    ...
}
```

Then you need a `App\Models\User` instance to generate this email. Therefor you would add the following config file:

```
return [
    'mails' => [
        [
            'label' => 'Welcome mail',
            'class' => \App\Mail\WelcomeMail::class,
            'args' => [
                \App\Nova\User::class,
            ]
        ],
    ]
];
```

And the you are able to send test mails and show previews directly in the UI.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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 ~8 days

Total

5

Last Release

2105d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5539e95c5d81bf23ff53c776d9fccbc1630e5b72d7cde2441c4020c8c05f73b4?d=identicon)[AndreasGJ](/maintainers/AndreasGJ)

---

Top Contributors

[![AndreasGJ](https://avatars.githubusercontent.com/u/4068425?v=4)](https://github.com/AndreasGJ "AndreasGJ (14 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/gwdhost-nova-mail-testing/health.svg)

```
[![Health](https://phpackages.com/badges/gwdhost-nova-mail-testing/health.svg)](https://phpackages.com/packages/gwdhost-nova-mail-testing)
```

###  Alternatives

[laracasts/behat-laravel-extension

Laravel extension for Behat

2611.3M12](/packages/laracasts-behat-laravel-extension)[davestewart/sketchpad

An innovative front-end environment for interactive Laravel development

29512.9k1](/packages/davestewart-sketchpad)[kunicmarko/graphql-test

GraphQL Test Cases

1359.0k](/packages/kunicmarko-graphql-test)[mnabialek/laravel-quick-migrations

Run Laravel tests quicker

2210.9k](/packages/mnabialek-laravel-quick-migrations)[srlabs/laravel-testing-utilities

Helper utilities for testing Laravel Applications

1011.9k](/packages/srlabs-laravel-testing-utilities)

PHPackages © 2026

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