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.
38
+
*`enabled`: wether 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
39
*`disk`: which disk to use by default. `null` will use the default disk from your application filesystem.
40
40
*`path`: the default path you would like to export your mails within a storage disk.
41
41
@@ -57,7 +57,7 @@ use PodPoint\MailExport\Contracts\ShouldExport;
57
57
class OrderShipped extends Mailable implements ShouldExport
58
58
{
59
59
use Exportable;
60
-
60
+
61
61
// ...
62
62
}
63
63
```
@@ -84,13 +84,13 @@ use PodPoint\MailExport\Contracts\ShouldExport;
84
84
class OrderShipped extends Mailable implements ShouldExport
85
85
{
86
86
use Exportable;
87
-
87
+
88
88
public $exportDisk = 'some_disk';
89
89
90
90
public $exportPath = 'some_path';
91
91
92
92
public $exportFilename = 'some_filename';
93
-
93
+
94
94
// ...
95
95
}
96
96
```
@@ -109,9 +109,9 @@ use PodPoint\MailExport\Contracts\ShouldExport;
109
109
class OrderShipped extends Mailable implements ShouldExport
110
110
{
111
111
use Exportable;
112
-
112
+
113
113
// ...
114
-
114
+
115
115
public function exportDisk(): string
116
116
{
117
117
return 'some_disk';
@@ -148,11 +148,11 @@ use Illuminate\Notifications\Notification;
148
148
class OrderShipped extends Notification
149
149
{
150
150
// ...
151
-
151
+
152
152
public function toMail($notifiable)
153
153
{
154
154
return (new Mailable($this->order))->to($notifiable->email);
155
-
}
155
+
}
156
156
}
157
157
```
158
158
@@ -175,7 +175,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
175
175
## Credits
176
176
177
177
-[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)
178
+
-[Laravel Package Development](https://laravelpackage.com) documentation by [John Braun](https://github.com/Jhnbrn90)
0 commit comments