How to create a test-route for mail/notifications testing #765
-
I'd like to test custom email templates. I've followed the guide here https://simple-commerce.duncanmcclean.com/notifications and managed to publish all the blade templates I need through: Could someone (@duncanmcclean 😀) give me an example of a test route I could use to send mail for testing easily? Something like this (only that this doesn't work) // set up a test-email route for sending notification email
Route::get('/test-email', function () {
$order = \DoubleThreeDigital\SimpleCommerce\Facades\Order::find('1b22a351-ffb2-428c-be05-715856560b8e');
$order->notify(new App\Notifications\OrderPaidNotification($order));
}); |
Beta Was this translation helpful? Give feedback.
Answered by
duncanmcclean
Dec 14, 2022
Replies: 1 comment 3 replies
-
When you say it's not working, what's the issue you're running into? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
el-schneider
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you say it's not working, what's the issue you're running into?