我面前有手册,我搜索了谷歌,但什么也没有。这是为什么:
//update combined results cache
$schedule->call('App\Http\Controllers\CombinedYieldUpdater@index')
->everyFiveMinutes()
->between('02:00', '04:00');
导致这个?
[2017-01-09 11:42:02] local.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Console\Scheduling\CallbackEvent::between()
最佳答案
看起来你没有使用 Laravel 5.3。类似问题here用户希望使用 Laravel 5.2 中可用的方法。他正在使用 5.1。
您确定使用 5.3 吗?如果不将您的框架更新到 5.3,它应该可以工作。
关于php - 为什么 "between"在 laravel 计划任务中不可用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41547416/