I'm setting up a new application when something changes in the database; I need to call a function in my background or backend, that function returns some id and data from the database.
Maybe someone can help me write a good cron job.
Laravel scheduler call function when something changes in the database.