New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

mmeyer2k/laravel-mail-file-driver

A Laravel Mail driver that saves messages to disk
238,895 1
Install
composer require mmeyer2k/laravel-mail-file-driver
Latest Version:0.0.2
Laravel:8 · 9
Last Updated:Oct 18, 2024
Links: GitHub  ·  Packagist
Maintainer: mmeyer2k

laravel-mail-file-driver

A Laravel Mail driver that saves messages to disk for testing/ci purposes.

Install

composer require mmeyer2k/laravel-mail-file-driver '0.0.1'

Replace default laravel mail manager in /config/app.php

return [
  'providers' => [
    # ...
    
    #Illuminate\Mail\MailServiceProvider::class,
    Mmeyer2k\LaravelMailFile\MailFileServiceProvider::class,
    
    # ...
  ],
];

Add to .env

MAIL_DRIVER=file

Custom storage location in .env

By default, messages are saved to path returned by sys_get_temp_dir().

MAIL_FILE_PATH=/path/to/storage

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

651,963,193 9,701
laravel/framework

The Laravel Framework.

610,364,751 34,988
laravel/tinker

Powerful REPL for the Laravel framework.

518,004,183 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

435,097,283 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

407,699,310 4,663

Version History

Version Released Laravel License
0.0.2 ^8.0|^9.0
0.0.1 ^8.0