【发布时间】:2015-03-21 13:37:26
【问题描述】:
当我使用 laravel cron api "liebig/cron"
Route::get('/cron/run/c68pd2s4e363221a3064e8807rrt342', function () {
Cron::add('example1', '* * * * *', function() {
$test = new Test();
$test->name='aaa';
$test->save();
});
$report = Cron::run();
print_r($report);
});
输出:Array ( [rundate] => 1400059503 [runtime] => -1 ) =>当我转到 url 路径“/cron/run/c68pd2s4e363221a3064e8807rrt342”时,这会告诉我
这是错误还是什么?
如何在 Windows 中测试它?
谢谢
【问题讨论】: