If I understand your question correctly, you want to be able to create one notification class for both email and database?
You'd typically handle this by using and specifying different delivery "channels" as referenced in the Laravel documentation.
I’m working on a Laravel project where I need to send various types of notifications (email, database). I was thinking of creating of common notification class, instead of creating seprate notification classes.
Has anyone implemented something similar? What’s the best approach to designing a flexible and reusable notification system? Any ideas, suggestions, or best practices would be appreciated!
Thanks In Advance !
Please or to participate in this conversation.