I have the following composer.json file for my Laravel 4.2.x project:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"laravel/framework": "4.2.*",
"cartalyst/sentry": "2.1.*",
"way/generators": "2.*",
"laracasts/flash": "~1.0",
"guzzlehttp/guzzle": "~4.0",
"itsgoingd/clockwork": "1.*",
"barryvdh/laravel-ide-helper": "~1.11@dev",
"intervention/image": "dev-master"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
],
"files": [
"app/Latheesan/helpers.php"
],
"psr-0": {
"Latheesan": "app/"
}
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan ide-helper:generate",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan ide-helper:generate",
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "dev"
}
This has been working fine until today. When I ran the composer update command, I got the following error:
{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Class 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider' not found","file":"C:\wamp\www\projectfolder\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php","line":157}}Script php artisan clear-compiled handling the post-update-cmd event returned with an error
It looks like the package that caused the problem is barryvdh/laravel-ide-helper
version ~1.11@dev
On the project's home page on github, it says:
For Laravel 4.x, check version 1.8
But that appears to be a dead link.
So, what is the correct require line to use on the composer.json
file, for this package that supports laravel 4.x?