Resolve this error for Laravel migration file: Each class must be in a namespace of at least one level

百般思念 提交于 2019-12-05 14:19:41

You can do it in many ways and

First you can put this at the top of your file:

// phpcs:disable 
PSR1.Classes.ClassDeclaration.MissingNamespace

Second you can use

// @codingStandardsIgnoreLine

Just before your class declaration.

Hope any one of these will work for you. If problem still persists please let me know about this.

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