I have a question. Is there a possibility in Cakephp but also in PHP in general, to write a function that will do something by itself without user interaction? I mean, for example, to change the status of a record based on the date. If now () is bigger than "start_date", then the function, change status to "completed". Until now, the user always had to change the status in edit view.
My Lesson table has these field:
ID, Title, Start_date, Add_user, description, status
I am using Cakephp 3.6.