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

aureliee123's avatar

subscription management laravel

Hello , I am working on a platform where I have an annual subscription once a user signs up the account gets activated for one year and the end date gets saved in the database

is there a way/package to manage/deactivate the user's account on that date the only way i have found is to use cron jobs

0 likes
4 replies
Snapey's avatar
Snapey
Best Answer
Level 122

create a command that checks if the subscription has expired and run it daily with the scheduler. You would probably also have other jobs such as sending expiry warnings?

These should all be run from the Console/Kernel.php with the schedule called every minute.

aureliee123's avatar

@snapey Yes i will be needing to send expiry warnings 15 days before the end date ,

i'm sorry but i haven't really understood why should the schedule be called every minute ?

aureliee123's avatar

the payment will be managed outside of the platform so no need for integrating billing

Please or to participate in this conversation.