You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`enabled`: wether this package is enabled or not.
44
+
*`enabled`: whether this package is enabled or not. Once installed, it's enabled by default but the `MAIL_EXPORT` environment variable can be used to configure this.
39
45
*`disk`: which disk to use by default. `null` will use the default disk from your application filesystem.
40
-
*`path`: the default path you would like to export your mails within a storage disk.
46
+
*`path`: the default path, within the configured disk, where mail will be exported.
41
47
42
48
See our [`config/mail-export.php`](config/mail-export.php) for more details.
43
49
@@ -57,7 +63,7 @@ use PodPoint\MailExport\Contracts\ShouldExport;
57
63
class OrderShipped extends Mailable implements ShouldExport
58
64
{
59
65
use Exportable;
60
-
66
+
61
67
// ...
62
68
}
63
69
```
@@ -84,13 +90,13 @@ use PodPoint\MailExport\Contracts\ShouldExport;
84
90
class OrderShipped extends Mailable implements ShouldExport
85
91
{
86
92
use Exportable;
87
-
93
+
88
94
public $exportDisk = 'some_disk';
89
95
90
96
public $exportPath = 'some_path';
91
97
92
98
public $exportFilename = 'some_filename';
93
-
99
+
94
100
// ...
95
101
}
96
102
```
@@ -109,9 +115,9 @@ use PodPoint\MailExport\Contracts\ShouldExport;
109
115
class OrderShipped extends Mailable implements ShouldExport
110
116
{
111
117
use Exportable;
112
-
118
+
113
119
// ...
114
-
120
+
115
121
public function exportDisk(): string
116
122
{
117
123
return 'some_disk';
@@ -148,11 +154,11 @@ use Illuminate\Notifications\Notification;
148
154
class OrderShipped extends Notification
149
155
{
150
156
// ...
151
-
157
+
152
158
public function toMail($notifiable)
153
159
{
154
160
return (new Mailable($this->order))->to($notifiable->email);
155
-
}
161
+
}
156
162
}
157
163
```
158
164
@@ -175,7 +181,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
175
181
## Credits
176
182
177
183
-[themsaid](https://github.com/themsaid) and Spatie's [laravel-mail-preview](https://github.com/spatie/laravel-mail-preview) for some inspiration
178
-
-[Laravel Package Development](https://laravelpackage.com) documentation by [John Braun](https://github.com/Jhnbrn90)
184
+
-[Laravel Package Development](https://laravelpackage.com) documentation by [John Braun](https://github.com/Jhnbrn90)
0 commit comments