Add the mail recipient from configuration in the CheckoutAcceptance model

This commit is contained in:
Ivan Nieto Vivanco 2022-08-11 15:33:18 -05:00
parent d2c486bb1e
commit 98bcd82108

View file

@ -16,6 +16,14 @@ class CheckoutAcceptance extends Model
'declined_at' => 'datetime', 'declined_at' => 'datetime',
]; ];
// Get the mail recipient from the config
public function routeNotificationForMail(): string
{
// At this point the endpoint is the same for everything.
// In the future this may want to be adapted for individual notifications.
return config('mail.reply_to.address');
}
/** /**
* The resource that was is out * The resource that was is out
* *