Laravel 5.8 419页面在Bluehost Server中过期异常

时间:2019-11-25 05:54:59

标签: laravel

我刚刚在我的Bluehost托管中上传了Laravel 5.8项目。万事俱备。登录该应用程序时,它显示419 Page Expired Exception。我在帖子请求中使用了@csrf。

在我的本地计算机上,它运行良好。当我购买域名时,bluehost为我提供了wordpress托管,并且删除了该域中的所有wordpress文件并上传了Laravel Project。

1 个答案:

答案 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

希望这对您有帮助。谢谢。