samedi 27 janvier 2018

Laravel delete records of table for past date automatically

I have a database table which fetches some information from an API.

The columns are

id     datetime     name
10011  2018-01-26  something

What I am looking for is to delete this entry, since it's date now is in the past.

Is there a way to specify a cron job in Laravel, which automatically deletes the column - which has an entry of datetime and which is on past?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire