我正在尝试安装 jenssegers Laravel-MongoDB 包。( https://github.com/jenssegers/Laravel-MongoDB )
当我尝试时composer update
,出现以下错误:
"error":{"type:"ReflectionException","message":"Classs db does not exist","file":"C:\\wamp\\www\\projectname\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php","line":308}} Script php artisan clear-compiled handling the post-update-cmd event returned with an error
我的composer.json
文件如下所示:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"laravel/framework": "4.0.*",
"jenssegers/mongodb": "*"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "dev"
}
任何建议如何解决这个问题?