Skip to content

Commit 63e574b

Browse files
authored
Merge pull request #6002 from reed-jones/patch-2
use $notifiable in example instead of $this->user
2 parents 3fb8329 + ce96176 commit 63e574b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notifications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ In addition, you may return a [mailable object](/docs/{{version}}/mail) from the
219219
*/
220220
public function toMail($notifiable)
221221
{
222-
return (new Mailable($this->invoice))->to($this->user->email);
222+
return (new Mailable($this->invoice))->to($notifiable->email);
223223
}
224224

225225
<a name="error-messages"></a>

0 commit comments

Comments
 (0)