Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
M

Mailgun Domain Verification

Installation Instructions

Add the package to your project.

composer require dniccum/mailgun-domain-verification

If you have haven't already, you will need to add the Mailgun API key to your .env file like so:

MAILGUN_SECRET="key-XXXXXXXXXXXXXXXXXXXX"

To use the tool, add the following code to your Nova resource.

use Dniccum\MailgunDomainVerification\MailgunDomainVerification;

MailgunDomainVerification::make()

By default, the tool will look for the email_address_domain column in the database.

If you would like to change the database column that the tool uses for domain validation, use the resourceAttribute option like so, where 'domain' is the name of the database column:

MailgunDomainVerification::make()
    ->resourceAttribute('domain')

Readme

Laravel Nova Mailgun Domain Verification

A Laravel Nova resource tool that allows users to dynamically and programatically add domains to their Mailgun account and verify their status by providing the necessary TXT and CNAME records.

Image 1

Requirements

You will need the following items to use this tool:

  • A valid Mailgun account
  • A private API key associated with your Mailgun account

Installation

To install this tool, use the installation code below:

composer require dniccum/mailgun-domain-verification

Usage

Environment variable

If you have haven't already, you will need to add the Mailgun API key to your .env file like so:

MAILGUN_SECRET="key-XXXXXXXXXXXXXXXXXXXX"

Code

To use the tool, add the following code to your Nova resource.

use Dniccum\MailgunDomainVerification\MailgunDomainVerification;

MailgunDomainVerification::make()

By default, the tool will look for the email_address_domain column in the database.

Options

resourceAttribute

If you would like to change the database column that the tool uses for domain validation, use the resourceAttribute option like so:

MailgunDomainVerification::make()
    ->resourceAttribute('domain')

Resource

After all of the appropriate credentials are in place, and no errors appear, click the "Add Domain" button to add the domain to your Mailgun account.

Image 1

Once done, the tool will provide you with the necessary TXT and CNAME records for you to add to your domain.

Image 2

Credits

License

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

Back to Top
Added 7 years ago
Last updated 5 Years Ago
Version v1.3.0
Composer
dniccum/mailgun-domain-verification
GitHub stars 3
Packagist downloads 27

Favorites

1 user favorited

Rating

N/A
(out of 5)
★★★★★
★★★★
★★★
★★
0 ratings

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas