dev-master
9999999-dev https://github.com/agouticreative/laravel-mailcatcherA service provider for Alexandre Salome's PHP Mailcatcher SDK
MIT
The Requires
by Travis Morrison
laravel php mailcatcher
A service provider for Alexandre Salome's PHP Mailcatcher SDK
A Laravel service provider that returns the data on a Mailcatcher instance as an Eloquent collection of models., (*1)
Most of the heavy lifting is done by Mailcatcher SDK for PHP, (*2)
composer install https://github.com/agouticreative/laravel-mailcatcher
Agouti\LaravelMailcatcher\ServiceProvider::class
to the providers
array in config/app.php
'Mailcatcher' => Agouti\LaravelMailcatcher\Facade::class
to the aliases
array in config/app.php
php artisan vendor:publish
Use Mailcatcher::search()
to search the Mailcatcher instance for messages. Search takes an array of filtering arguments in the manner of the aforementioned Mailcatcher PHP SDK. Refer to that repo's instructions to learn more. A simple Mailcatcher::search()
will return all messages on Mailcatcher., (*3)
The messages' models will have these attributes:, (*4)
Attachments are not yet supported., (*5)
The original message object from the SDK is available as the messageObject property on the message model ($collection[0]->messageObject, for example), (*6)
Both the model and the collection have a delete method that will delete messages on Mailcatcher. delete on the collection completely clears out mailcatcher! be careful!, (*7)
A service provider for Alexandre Salome's PHP Mailcatcher SDK
MIT
laravel php mailcatcher