Skip to content

Commit

Permalink
Add subject to email notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Raccoon254 committed Jun 17, 2024
1 parent d1ea05d commit d0cbc4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Notifications/OrderCreatedForUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function via(object $notifiable): array
public function toMail(object $notifiable): MailMessage
{
return (new MailMessage)
->subject('Order Created')
->greeting('Hello ' . $notifiable->name . ',')
->line('Your order has been successfully created.')
->line('Order Details:')
Expand Down
1 change: 1 addition & 0 deletions app/Notifications/OrderCreatedForWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function via(object $notifiable): array
public function toMail(object $notifiable): MailMessage
{
return (new MailMessage)
->subject('You have a new order')
->greeting('Hello ' . $notifiable->name . ',')
->line('A new order has been created by ' . $this->order->user->name)
->line('Order Details:')
Expand Down

0 comments on commit d0cbc4e

Please sign in to comment.