Skip to content

Commit 0a695b4

Browse files
authored
Corrected User Association in Readme (#22)
1 parent 67d0952 commit 0a695b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,15 @@ class ProductReviewMail extends Mailable
258258
{
259259
// Call associateWith() and the package automatically associates the public
260260
// properties with this mailable.
261-
$this->associateWith($this->product);
261+
$this->associateWith($this->user);
262262
$this->associateWith([$this->product]);
263263

264264
// Or – if you want more control – use the getMailModelsHeader() method
265265
// to get a Header instance and merge it with your own headers.
266266
return new Headers(
267267
text: [
268268
'X-Custom-Header' => 'Custom Value',
269-
...$this->getMailModelsHeader($this->product)->toArray(),
269+
...$this->getMailModelsHeader($this->user)->toArray(),
270270
...$this->getMailModelsHeader([$this->product])->toArray(),
271271
],
272272
);

0 commit comments

Comments
 (0)