Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Chrizzmeister's avatar

Send email when date almost expires

Hi,

So i have a database column called Expiry_date . When the expiry date is less than a month from now i need to send an Email. But i'm not sure how to handle that. Do i need to create a event to listen for that? I never really worked with events so not really sure where to start.

I'm not asking for code, just some quick tips where i should look for information about this or which videos to watch on this kind of subject

0 likes
1 reply
ehben's avatar
ehben
Best Answer
Level 13

You can use events indeed that are triggered by a job-scheduler (see cron).

cron is a job-scheduler that will launch regularly a script (an event maybe in your case) that you have defined, at a time you define, like everyday at midnight for example.

Check here for more info : https://laravel.com/docs/5.3/scheduling

Please or to participate in this conversation.