Provides email support for the Mailtrap.io Email Sending Service through API
  • PHP 99.4%
  • Blade 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2023-08-23 14:23:13 +08:00
.github/workflows Add automated tests 2023-08-23 14:23:13 +08:00
src Add ability to define category of mail 2023-08-23 14:18:08 +08:00
tests Add ability to define category of mail 2023-08-23 14:18:08 +08:00
.editorconfig Initial commit 2023-08-23 12:09:01 +08:00
.gitignore Initial commit 2023-08-23 12:09:01 +08:00
composer.json Initial commit 2023-08-23 12:09:01 +08:00
LICENSE Add license 2023-08-23 13:43:26 +08:00
phpunit.xml.dist Initial commit 2023-08-23 12:09:01 +08:00
README.md Initial commit 2023-08-23 12:09:01 +08:00

Mailtrap Driver for Laravel

This allows a Laravel v6.x install to use the Mailtrap.io sending service API for sending emails, since the official client does not support any version below Laravel 9.

Usage

Include in Composer:

composer require manageitwa/laravel-mailtrap-driver

The package should be discovered if you have Laravel package auto-discovery enabled. Otherwise, include the service provider in your app.providers config:

'providers' => [
    // ...
    ManageItWA\LaravelMailtrapDriver\MailtrapServiceProvider::class,
    //...
],

Finally, ensure that you add the following to config/services.php:

'mailtrap' => [
    'token' => '', // Set to your API token from Mailtrap
],

You may then set your mail.driver to mailtrap and you're away!