Skip to content
Advertisement

update one row of table in the future (Laravel)

the update method in Laravel (version 8) edit fields at the execution time, but I want to update fields at a specefic date
for exemple :
I have company table with pack field : when the customer pay another pack, the pack field would be edited after the end of the current pack.

there is a solution for this ?

Advertisement

Answer

You have to setup a cronjob for that purpose, create an artisan command , implement you logic there (the date condition), create a cronjob in the Cpanel. Through the CronJob hit the artisan command ,I think this helps….

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement