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

 

posted @ 2019-10-22 10:38  你的男孩  阅读(904)  评论(0编辑  收藏  举报