0
請幫助我。 如何運行此命令:如何在瀏覽器中運行手工計劃?
php /path/to/artisan schedule:run >> /dev/null 2>&1
在瀏覽器(example.com/runschedule)?
Laravel版本:5XX
我已經試過
Route::get('/runschedule', function() {
Artisan::call('schedule:run');
return back()->with('status','Cron complete!');
});
,但它無法正常工作。該頁面顯示
(哎呦,看起來像出事了。)
啓用錯誤報告並檢查出了什麼問題。 –
當然你可以在瀏覽器上調用它。檢查你的laravel錯誤日誌。展示下。 –