项目作者: tkeer

项目描述 :
A mail catcher built for laravel
高级语言: PHP
项目地址: git://github.com/tkeer/mailbase.git
创建时间: 2019-12-14T11:23:30Z
项目社区:https://github.com/tkeer/mailbase

开源协议:

下载


Laravel Mail Catcher Driver

This package include a new mailbase driver which will catch all the sent emails and save it to the database.
It then exposes a route /mailbase which you can visit to preview all the mails.

Mailbase preview

Installation

Laravel 7.x or higher

To install run the following command in your terminal:

  1. composer require tkeer/mailbase --dev

Then run the migration

  1. php artisan migrate

Finally, change MAIL_MAILER to mailbase in your .env file:

  1. MAIL_MAILER=mailbase

Laravel (5.x|6.x)

  1. composer require tkeer/mailbase ^0.4 --dev
  1. php artisan migrate

change MAIL_DRIVER to mailbase in your .env file:

Usage

Send dummy email

You can run following command to test mailbase driver by sending a dummy email.

  1. php artisan mailbase:test

Clearing Saved Emails

If you want to clear any of the saved emails that are in the database, use the following command:

  1. php artisan mailbase:clear