vendredi 9 décembre 2022

How can I Link Cron jobs to users Laravel

I am trying to know which user has cron jobs on our server.

I tried to read from the jobs table the user's id. It worked but there should be a cleaner way than using LIKE on a big chunk.

My first thought is when creating a job I should add a row in a many-to-many relationship between the user's id and the job's id.

Is there a more efficient way of handling such a scenario? There is not much code I can add because I need to understand how to tackle this.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire