Closed lucadegasperi closed 6 years ago
I have done this in an SMS notification package by adding a pretend
config option (https://github.com/luisdalmolin/laravel-zenvia-channel#configuration).
I think it's great to have such option.
I like this idea, would it make sense to do something like this across all packages?
Is there any precedent within LNC for supporting logging now?
Happy to implement this if some sort of standard could be agreed upon or if a PR is provided. Part of me is thinking that perhaps any pretend
functionality for notifications might better belong in Laravel itself so it's handled at a global level, but I could be wrong there.
In some cases, when just testing the correct payload of the notification, I think it would be useful to have the notification logged instead of actually sent out.
What do you think? Do you have any suggestions on how I could test notifications without actually sending them?