C
C
cryp242019-05-25 09:31:42
Task Schedulers
cryp24, 2019-05-25 09:31:42

How to configure php script to run in laravel schedule?

I understand a little with Laravel, I heard that Laravel has its own cron. By googling, I understood a little that its principle is that you need to add one command to the cron to execute the laravel schedule, and already prescribe all the tasks there. On the one hand, everything is simple, I’m really confused, please help with a specific example: I created the ParserControllers controller in it, the ParserSite1 and ParserSite2 functions in the routes, I registered the paths for them and now my parsers are available via links like https://www.site/ParserSite1 and https://www.site/ParserSite1.
The question is how do I specify the execution of these two requests in the laravel schedule, and also how to correctly specify the line in the real cron for laravel schedule for OpenServer and Ubuntu 18.04?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2019-05-25
@cryp24

https://laravel.com/docs/5.8/scheduling

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question