我刚刚在我的Bluehost托管中上传了Laravel 5.8项目。万事俱备。登录该应用程序时,它显示419 Page Expired Exception。我在帖子请求中使用了@csrf。
在我的本地计算机上,它运行良好。当我购买域名时,bluehost为我提供了wordpress托管,并且删除了该域中的所有wordpress文件并上传了Laravel Project。
答案 0 :(得分:0)
您可以选择
Route::get('/clear',function(){
Artisan::call('view:clear');
Artisan::call('route:clear');
Artisan::call('config:cache');
Artisan::call('cache:clear');
});
然后像
这样从浏览器运行http://your-app.com/clear
希望这对您有帮助。谢谢。