@@ -85,16 +85,36 @@ public function getRecipient()
8585 return $ this ->recipient ;
8686 }
8787
88+ /**
89+ * Get the e-mail recipient.
90+ *
91+ * @return string
92+ */
93+ public function getRecipientAttribute ()
94+ {
95+ return $ this ->recipient ;
96+ }
97+
8898 /**
8999 * Get the e-mail from.
90100 *
91- * @return array
101+ * @return string
92102 */
93103 public function getFrom ()
94104 {
95105 return $ this ->from ;
96106 }
97107
108+ /**
109+ * Get the e-mail from.
110+ *
111+ * @return string
112+ */
113+ public function getFromAttribute ()
114+ {
115+ return $ this ->from ;
116+ }
117+
98118 /**
99119 * Get the e-mail from address.
100120 *
@@ -137,6 +157,16 @@ public function getCc()
137157 return $ this ->cc ;
138158 }
139159
160+ /**
161+ * Get the e-mail CC addresses.
162+ *
163+ * @return array
164+ */
165+ public function getCcAttribute ()
166+ {
167+ return $ this ->cc ;
168+ }
169+
140170 /**
141171 * Get the e-mail BCC addresses.
142172 *
@@ -147,6 +177,16 @@ public function getBcc()
147177 return $ this ->bcc ;
148178 }
149179
180+ /**
181+ * Get the e-mail BCC addresses.
182+ *
183+ * @return array
184+ */
185+ public function getBccAttribute ()
186+ {
187+ return $ this ->bcc ;
188+ }
189+
150190 /**
151191 * Get the e-mail subject.
152192 *
@@ -157,6 +197,16 @@ public function getSubject()
157197 return $ this ->subject ;
158198 }
159199
200+ /**
201+ * Get the e-mail subject.
202+ *
203+ * @return string
204+ */
205+ public function getSubjectAttribute ()
206+ {
207+ return $ this ->view ;
208+ }
209+
160210 /**
161211 * Get the e-mail view.
162212 *
@@ -177,6 +227,16 @@ public function getVariables()
177227 return $ this ->variables ;
178228 }
179229
230+ /**
231+ * Get the e-mail variables.
232+ *
233+ * @return array
234+ */
235+ public function getVariablesAttribute ()
236+ {
237+ return $ this ->variables ;
238+ }
239+
180240 /**
181241 * Get the e-mail body.
182242 *
@@ -187,6 +247,16 @@ public function getBody()
187247 return $ this ->body ;
188248 }
189249
250+ /**
251+ * Get the e-mail body.
252+ *
253+ * @return string
254+ */
255+ public function getBodyAttribute ()
256+ {
257+ return $ this ->body ;
258+ }
259+
190260 /**
191261 * Get the e-mail attachments.
192262 *
@@ -393,10 +463,9 @@ public function send()
393463 */
394464 public function retry ()
395465 {
396- $ retry = new static ;
466+ $ retry = $ this -> replicate () ;
397467
398- $ retry ->fill (array_merge (
399- $ this ->toArray (),
468+ $ retry ->fill (
400469 [
401470 'id ' => null ,
402471 'attempts ' => 0 ,
@@ -406,7 +475,7 @@ public function retry()
406475 'sent_at ' => null ,
407476 'delivered_at ' => null ,
408477 ]
409- )) ;
478+ );
410479
411480 $ retry ->save ();
412481 }
0 commit comments