Laravel 5 Unable to detect application namespace

前端 未结 6 920
灰色年华
灰色年华 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:24

    Okay, I solved it. What I did to solve this:

    composer update
    

    gave me following error:

    [Seld\JsonLint\ParsingException]
    
    "./composer.json" does not contain valid JSON
     Parse error on line 9:
    "require-dev
     ---------------------^
     Expected: 'STRING' - It appears you have an extra trailing comma
    

    I opened composer.json and there was one extra comma in last line:

    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.1.*",
    }
    

    Removed the comma so it looked like this:

    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.1.*"
    }
    

    And problem was gone.

提交回复
热议问题