Laravel 5 Unable to detect application namespace

前端 未结 6 915
灰色年华
灰色年华 2020-12-29 18:10

I\'m new to Laravel 5 and trying to understand it bit by bit and at the moment I\'m really confused with error messages. MVC is new thing to me.

What I\'m trying to

6条回答
  •  灰色年华
    2020-12-29 18:42

    What caused this for me was having lines commented with //. The // can be on its own line or at the end of the line. Also having comma at the end can cause this.

    Removing the comments solved this. And/or removing the extra ending comma.

    The error happens for "composer update", and artisan commands such as "php artisan make:controller TestsController --resource", or "php artisan make:model Test"

提交回复
热议问题