升级到Laravel 5.4-现在有些路线失败了? [英] Upgraded to Laravel 5.4 - Some routes now fail?

查看:52
本文介绍了升级到Laravel 5.4-现在有些路线失败了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Laravel 5.3上有一个完全正常的项目,昨天我在本地升级到了Laravel 5.4,以检查所有功能是否正常,并感到非常高兴,因此制定了计划以将其投入使用.

I had a completely working project on Laravel 5.3, yesterday I upgraded to Laravel 5.4 locally to check all was working and was very happy so put a plan in place to move it live.

我现在在forge.laravel.com受管服务器上部署了站点,大多数路由都可以正常工作,但是在尝试注销时出现以下错误:

Where I have now deployed the site on my forge.laravel.com managed servers, most of the routes work okay but when trying to log out I get the following error:

我不太确定问题出在哪里.该站点在本地完全正常.谁能指出我正确的方向?

I'm not quite sure what the issue actually is. This site works totally fine locally. Can anyone point me in the right direction?

推荐答案

作为快速解决方案(在给Taylor发电子邮件之后),他建议我注释掉app\Html\Kernal.php

As a quick fix (after emailing Taylor) he suggested that I comment out the \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, middleware inside app\Html\Kernal.php

试过了,效果很好!

当您知道如何轻松修复!哈哈

Easy fix when you know how! haha

这篇关于升级到Laravel 5.4-现在有些路线失败了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆