Upgraded to Laravel 5.4 - Some routes now fail?

纵然是瞬间 提交于 2019-12-08 22:00:57

问题


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.

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?


回答1:


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

Tried it and it worked perfectly!

Easy fix when you know how! haha




回答2:


I had something similar issue, I have tried to increase my limits too. You can't do them on ini file in laravel 5.4 but you can add your customizations on public/.htaccess

https://stackoverflow.com/a/42399301/7596103



来源:https://stackoverflow.com/questions/41875028/upgraded-to-laravel-5-4-some-routes-now-fail

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!