I am trying to Make a Notification Script for my own use. Here is What I am trying to achieve. When user is Registering I am grabbing their email address and the notification date which is given by them and saving these in the profile table. Now on that specified notification date the Application will automatically send them an email. So far my idea for doing this easily is to use an "Event"; But please feel free to correct me if I am wrong. Based on my idea here is what I am planning to do; for the email I might register a class as the data for the Event.
But my first question is how can I listen for an event for that notification date?
And I want to send them a notification every month so after sending an email I am gonna add one month to the old notification date given by the user. Adding one month would be easy as I am using "Carbon" on the input while saving the notification date.
So, my second question is after the notification date is updated how can I listen for that event again?
And lastly if I have 100 users and I want to send the same notification to everyone on the notification date given by them and a specific date such as at the beginning of each month. How can I do that recurrently?
Please feel free to give any kind of suggestion that might be easy to implement instead of what I am thinking.