为什么 "between" 在 laravel 计划任务中不可用?
why isn't "between" available in a laravel schedule task?
手册就在我面前,我搜索了 Google,但什么也没有。这是为什么:
//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。类似问题 ,其中用户想要使用 Laravel 5.2 中可用的方法。他正在使用 5.1。
您确定使用的是 5.3 吗?如果不将您的框架更新到 5.3,它应该可以工作。
手册就在我面前,我搜索了 Google,但什么也没有。这是为什么:
//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。类似问题
您确定使用的是 5.3 吗?如果不将您的框架更新到 5.3,它应该可以工作。