F
F
FulgerX20072020-07-03 10:45:26
Laravel
FulgerX2007, 2020-07-03 10:45:26

Why does laravel scheduler run code every minute?

Why does laravel scheduler run code every minute?

Used it like that

$schedule->call(FeedBackController::exportFullReport())->cron('*/5 * * * *');

so
$schedule->call(FeedBackController::exportFullReport())->everyFiveMinutes();


It still fires every minute.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2020-07-03
@FulgerX2007

$schedule
  ->call(
    function () {
      FeedBackController::exportFullReport();
    }
  )
  ->everyFiveMinutes();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question