| Package Data | |
|---|---|
| Maintainer Username: | agouticreative |
| Maintainer Contact: | travismmorrison@gmail.com (Travis Morrison) |
| Package Create Date: | 2016-05-23 |
| Package Last Update: | 2016-06-15 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-06 15:00:30 |
| Package Statistics | |
|---|---|
| Total Downloads: | 2,948 |
| Monthly Downloads: | 77 |
| Daily Downloads: | 7 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
A Laravel service provider that returns the data on a Mailcatcher instance as an Eloquent collection of models.
Most of the heavy lifting is done by Mailcatcher SDK for PHP
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.
The messages' models will have these attributes:
Attachments are not yet supported.
The original message object from the SDK is available as the messageObject property on the message model ($collection[0]->messageObject, for example)
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!