Reputation: 49
I'm working on an application with Laravel framework. When I tried loading the application(http://localhost/laravel/public/) from firefox browser, I get the below error:
FatalErrorException in C:\wamp\www\laravel\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php line 150: Class 'Illuminate\Broadcasting\BroadcastServiceProvider' not found
I tried solving this by following few of the solutions mentioned below, but I couldn't get out.
My composer.json file components:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": { "php": ">=5.5.9", "laravel/framework": "5.1.*"
},
"require-dev": {
"fzaninotto/faker": "~1.4", "mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0", "phpspec/phpspec": "~2.1"
},
"autoload": {
"classmap": ["database"],
"psr-4": {"App\\": "app/"}
},
"autoload-dev": {"classmap": ["tests/TestCase.php"]},
"scripts": {
"post-install-cmd": ["php artisan clear-compiled","php artisan optimize"],
"pre-update-cmd": ["php artisan clear-compiled"],
"post-update-cmd": ["php artisan optimize"],
"post-root-package-install": ["php -r \"copy('.env.example', '.env');\"" ],
"post-create-project-cmd": ["php artisan key:generate"]
},
"config": {"preferred-install": "dist"},
"require": {"illuminate/html": "5.*","laravel/framework": "5.0.*"}
}
Your help will get me out of this limbo.
Upvotes: 2
Views: 3174
Reputation: 3978
You should run
composer install --no-dev --no-scripts
and then
composer install --no-dev -o
Upvotes: 1