Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in

最近laravel本地跑项目完成拉到线上所有接口都是500的格式

这种就是编码错误了,用notepad++看编码会发现是utf-8-bom的格式

直接把编码改成utf-8就OK

猜你喜欢

转载自www.cnblogs.com/wxy0126/p/11718369.html