I'm using Laravel. I'm trying to make a GET to a certain URL (http://localhost/user/check_token) Every 5 mins.
I'm thinking
- Create a route : http://localhost/user/check_token
- Write a python script to make a GET to that route
- Configure a cron job to trigger that script every 5 mins
But I'm curious if we can achieve this in Laravel itself.
Can we declare a route and make it self executed ? or something like that ?
I'm opening to any suggestions at the moment.
Is my python solution is the best practice for this kind of task ?
Any hints / suggestions on this be much appreciated !
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire