0
當我使用laravel的cron API 「李比希/ cron的」Laravel Cron 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的/運行/ c68pd2s4e363221a3064e8807rrt342」
這是錯誤或什麼 ?
我如何在Windows中測試它?
謝謝