@@ -85,16 +85,36 @@ public function getRecipient()
85
85
return $ this ->recipient ;
86
86
}
87
87
88
+ /**
89
+ * Get the e-mail recipient.
90
+ *
91
+ * @return string
92
+ */
93
+ public function getRecipientAttribute ()
94
+ {
95
+ return $ this ->recipient ;
96
+ }
97
+
88
98
/**
89
99
* Get the e-mail from.
90
100
*
91
- * @return array
101
+ * @return string
92
102
*/
93
103
public function getFrom ()
94
104
{
95
105
return $ this ->from ;
96
106
}
97
107
108
+ /**
109
+ * Get the e-mail from.
110
+ *
111
+ * @return string
112
+ */
113
+ public function getFromAttribute ()
114
+ {
115
+ return $ this ->from ;
116
+ }
117
+
98
118
/**
99
119
* Get the e-mail from address.
100
120
*
@@ -137,6 +157,16 @@ public function getCc()
137
157
return $ this ->cc ;
138
158
}
139
159
160
+ /**
161
+ * Get the e-mail CC addresses.
162
+ *
163
+ * @return array
164
+ */
165
+ public function getCcAttribute ()
166
+ {
167
+ return $ this ->cc ;
168
+ }
169
+
140
170
/**
141
171
* Get the e-mail BCC addresses.
142
172
*
@@ -147,6 +177,16 @@ public function getBcc()
147
177
return $ this ->bcc ;
148
178
}
149
179
180
+ /**
181
+ * Get the e-mail BCC addresses.
182
+ *
183
+ * @return array
184
+ */
185
+ public function getBccAttribute ()
186
+ {
187
+ return $ this ->bcc ;
188
+ }
189
+
150
190
/**
151
191
* Get the e-mail subject.
152
192
*
@@ -157,6 +197,16 @@ public function getSubject()
157
197
return $ this ->subject ;
158
198
}
159
199
200
+ /**
201
+ * Get the e-mail subject.
202
+ *
203
+ * @return string
204
+ */
205
+ public function getSubjectAttribute ()
206
+ {
207
+ return $ this ->view ;
208
+ }
209
+
160
210
/**
161
211
* Get the e-mail view.
162
212
*
@@ -177,6 +227,16 @@ public function getVariables()
177
227
return $ this ->variables ;
178
228
}
179
229
230
+ /**
231
+ * Get the e-mail variables.
232
+ *
233
+ * @return array
234
+ */
235
+ public function getVariablesAttribute ()
236
+ {
237
+ return $ this ->variables ;
238
+ }
239
+
180
240
/**
181
241
* Get the e-mail body.
182
242
*
@@ -187,6 +247,16 @@ public function getBody()
187
247
return $ this ->body ;
188
248
}
189
249
250
+ /**
251
+ * Get the e-mail body.
252
+ *
253
+ * @return string
254
+ */
255
+ public function getBodyAttribute ()
256
+ {
257
+ return $ this ->body ;
258
+ }
259
+
190
260
/**
191
261
* Get the e-mail attachments.
192
262
*
@@ -393,10 +463,9 @@ public function send()
393
463
*/
394
464
public function retry ()
395
465
{
396
- $ retry = new static ;
466
+ $ retry = $ this -> replicate () ;
397
467
398
- $ retry ->fill (array_merge (
399
- $ this ->toArray (),
468
+ $ retry ->fill (
400
469
[
401
470
'id ' => null ,
402
471
'attempts ' => 0 ,
@@ -406,7 +475,7 @@ public function retry()
406
475
'sent_at ' => null ,
407
476
'delivered_at ' => null ,
408
477
]
409
- )) ;
478
+ );
410
479
411
480
$ retry ->save ();
412
481
}
0 commit comments