Skip to content

Commit ce239cd

Browse files
Merge pull request #31 from stackkit/readme
Readme
2 parents 5bf425e + 6c5a1be commit ce239cd

File tree

2 files changed

+46
-6
lines changed

2 files changed

+46
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## 4.2.0 - 2020-05-16
8+
9+
**Added**
10+
11+
- Support for Laravel 7.x
12+
- Queued option
13+
714
## 4.1.1 - 2020-01-11
815

916
**Fixed**

README.md

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ The package is MIT licenced, meaning it's open source and you are free to copy o
1717

1818
We feel the package is currently feature complete, but feel free to send a pull request or help improve existing code.
1919

20+
# Requirements
21+
22+
This package requires Laravel 5.6 or higher.
23+
24+
Please check the table below for supported Laravel and PHP versions:
25+
26+
|Laravel Version| PHP Version |
27+
|---|---|
28+
| 5.6 | 7.2 or 7.3
29+
| 5.7 | 7.2 or 7.3
30+
| 5.8 | 7.2 or 7.3 or 7.4
31+
| 6.x | 7.2 or 7.3 or 7.4
32+
| 7.x | 7.2 or 7.3 or 7.4
2033

2134
# Installation
2235

@@ -26,12 +39,6 @@ Require the package using composer.
2639
composer require stackkit/laravel-database-emails
2740
```
2841

29-
If you're running Laravel 5.5 or later you may skip this step. Add the service provider to your application.
30-
31-
```
32-
Stackkit\LaravelDatabaseEmails\LaravelDatabaseEmailsServiceProvider::class,
33-
```
34-
3542
Publish the configuration files.
3643

3744
```bash
@@ -190,6 +197,32 @@ Without encryption
190197
With encryption the table size is ± 50.58 MB.
191198
```
192199

200+
201+
### Queueing e-mails
202+
203+
**Important**: When queueing mail using the `queue` function, it is no longer necessary to schedule the `email:send` command. Please make sure it is removed from `app/Console/Kernel.php`.
204+
205+
```php
206+
<?php
207+
208+
use Stackkit\LaravelDatabaseEmails\Email;
209+
210+
Email::compose()
211+
->queue();
212+
213+
// on a specific connection
214+
Email::compose()
215+
->queue('sqs');
216+
217+
// on a specific queue
218+
Email::compose()
219+
->queue(null, 'email-queue');
220+
221+
// timeout (send mail in 10 minutes)
222+
Email::compose()
223+
->queue(null, null, now()->addMinutes(10));
224+
```
225+
193226
### Test mode (Optional)
194227

195228
When enabled, all newly created e-mails will be sent to the specified test e-mail address. This is turned off by default.

0 commit comments

Comments
 (0)