Laravel中的反思异常

时间:2016-03-19 07:30:14

标签: laravel composer-php

当我运行与php artisan相关的命令时,我尝试了composer dump-autoloadcomposer update和其他命令我收到错误

PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\Console\Kernel does not exist' in /media/durga/CE4C15B14C159575/htdocs/nyfrag/vendor/laravel/framework/src/Illuminate/Container/Container.php:738

我的Laravel项目正在运行,但是当我运行与php artisan相关的任何命令时,工匠命令无效,它显示上述错误。有人可以帮帮我吗

我的composer.json文件是`{     " name":" laravel / laravel",     "描述":" Laravel框架。",     "关键字":["框架"," laravel"],     "许可证":" MIT",     "输入":"项目",     "要求":{         " php":"> = 5.5.9",         " laravel / framework":" 5.2。"     },     " require-dev":{         " fzaninotto / faker":" ~1.4",         " mockery / mockery":" 0.9。",         " phpunit / phpunit":" ~4.0",         " symfony / css-selector":" 2.8。 | 3.0。"

},
"autoload": {
    "classmap": [
        "database"

    ],
    "psr-4": {
        "App\\": "app/"
    }
},
"autoload-dev": {
    "classmap": [
        "tests/TestCase.php"
    ]
},
"scripts": {
    "post-root-package-install": [
        "php -r \"copy('.env.example', '.env');\""
    ],
    "post-create-project-cmd": [
        "php artisan key:generate"
    ],
    "post-install-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],
    "pre-update-cmd": [
        "php artisan clear-compiled"
    ],
    "post-update-cmd": [
        "php artisan optimize"
    ]
},
"config": {
    "preferred-install": "dist"
},
"repositories": {
    "repo-name": {
        "type": "git",
        "url": "git@github.com:jamisonvalenta/Laravel-4-Generators.git"
    }
}

} `

0 个答案:

没有答案