Skip to content

Commit ee7bac6

Browse files
authored
0.2.x - Support for PHP 8 and Laravel 7 and 8 (#3)
1 parent f24a66a commit ee7bac6

File tree

4 files changed

+25
-19
lines changed

4 files changed

+25
-19
lines changed

.github/workflows/run-tests.yml

+6-9
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,13 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [ 7.1, 7.4 ]
12-
laravel: [ 5.5.*, 6.* ]
13-
exclude:
14-
- laravel: 6.*
15-
php: 7.1
11+
php: [ 7.3, 8.0 ]
12+
laravel: [ 7.*, 8.* ]
1613
include:
17-
- laravel: 5.5.*
18-
testbench: 3.5.*
19-
- laravel: 6.*
20-
testbench: 4.*
14+
- laravel: 7.*
15+
testbench: 5.*
16+
- laravel: 8.*
17+
testbench: 6.*
2118

2219
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
2320

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@ This can be useful when wanting to store emails sent for archive purposes.
1313

1414
You can install the package via composer:
1515

16+
For Laravel 5.x and 6.x
17+
18+
```bash
19+
composer require pod-point/laravel-mail-export:^0.1
20+
```
21+
22+
For Laravel 7.x and 8.x
23+
1624
```bash
17-
composer require pod-point/laravel-mail-export
25+
composer require pod-point/laravel-mail-export:^0.2
1826
```
1927

2028
### Publishing the config file

composer.json

+9-7
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^7.1|^7.2|^7.3|^7.4",
15-
"nesbot/carbon": "^1.0|^2.0",
16-
"illuminate/support": "~5.4|~5.5|~5.6|~5.7|~5.8|^6.0",
17-
"illuminate/mail": "~5.4|~5.5|~5.6|~5.7|~5.8|^6.0",
18-
"illuminate/filesystem": "~5.4|~5.5|~5.6|~5.7|~5.8|^6.0"
14+
"php": "^7.2.5|^8.0",
15+
"nesbot/carbon": "^2.0",
16+
"illuminate/support": "~7.0|^8.0",
17+
"illuminate/mail": "~7.0|^8.0",
18+
"illuminate/filesystem": "~7.0|^8.0"
1919
},
2020
"require-dev": {
21-
"orchestra/testbench": "^3.4.0|^3.5.0|^3.6.0|^3.7.0|^3.8.0|^4.0",
22-
"phpunit/phpunit": "~5.7|~6.0|^7.0|^7.5|^8.0|^9.0"
21+
"orchestra/testbench": "^5.0|^6.0"
2322
},
2423
"autoload": {
2524
"psr-4": {
@@ -32,6 +31,9 @@
3231
}
3332
},
3433
"extra": {
34+
"branch-alias": {
35+
"dev-master": "0.2-dev"
36+
},
3537
"laravel": {
3638
"providers": [
3739
"PodPoint\\MailExport\\MailExportServiceProvider"

src/Concerns/Exportable.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace PodPoint\MailExport\Concerns;
44

5-
use Illuminate\Contracts\Mail\Mailer as MailerContract;
65
use Illuminate\Mail\Mailable;
76
use PodPoint\MailExport\Contracts\ShouldExport;
87
use PodPoint\MailExport\StorageOptions;
@@ -15,7 +14,7 @@ trait Exportable
1514
/**
1615
* @inheritDoc
1716
*/
18-
public function send(MailerContract $mailer)
17+
public function send($mailer)
1918
{
2019
$this->withSwiftMessage(function ($message) {
2120
if (! $this instanceof ShouldExport) {

0 commit comments

Comments
 (0)