我做了什么:
composer.json
。composer update
。Class 'Thujohn\Pdf\PdfServiceProvider' not found in ~/my-project/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 157
。我必须做些什么才能避免错误?有什么建议吗?提前谢谢。
UPD1
composer.json:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"repositories": [{
"type":"package",
"package": {
"name": "mineroot/pdf-l4",
"version":"master",
"source": {
"url": "https://github.com/mineroot/pdf-l4",
"type": "git",
"reference":"master"
}
}
}],
"require": {
"laravel/framework": "4.2.*",
"mineroot/pdf-l4": "master"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"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"
}
UPD2
现在在composer.json中我的repositories
数组:
"repositories": [
{
"url": "https://github.com/mineroot/pdf-l4",
"type": "git"
}
]