V
V
Valery Khizhevsky2018-05-17 16:15:39
Laravel
Valery Khizhevsky, 2018-05-17 16:15:39

How to call Laravel controller method from CRON?

Good evening.
I have data cached in the method, how can I call this method, which is in the controller via CRON?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
Y
Yan-s, 2018-05-17
@Yan-s

https://laravel.ru/docs/v5/scheduling

A
Alexander Aksentiev, 2018-05-17
@Sanasol

make a command for this and call it by cron

I
iljaGolubev, 2018-05-17
@iljaGolubev

https://laracasts.com/discuss/channels/laravel/how...

V
vism, 2018-05-17
@vism

It is not necessary to cache in the controller method.
Transfer everything to the model and call at least a method of the model

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question