Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

deeperdata's avatar

Larabooks: Jeffrey Way generators not getting installed vendor directory.

I'm on the 2nd video of this series and I'm already experiencing an issue. Using Laravel 4.2 in Homestead per video. I run "composer require way/generators --dev" which updates my composer.json file. I then modify app/config/app.php to include "'Way\Generators\GeneratorsServiceProvder'" as a service provider. Typing "composer update" or "php artisan" gives me a big ugly error: https://www.dropbox.com/s/64xny7yac1z5gkk/Screenshot%202014-09-21%2013.48.23.png?dl=0

Summary: Error Output: PHP Fatal error: Class 'Way\Generators\GeneratorsServiceProvder' not found in /home/v
agrant/Code/public/larabook/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.ph
p on line 157

How do I fix this? Thanks.

0 likes
7 replies
clarkeash's avatar

Try running composer update before you update app.php

deeperdata's avatar

After removing it from app/config/app.php, I was able to run through composer update and see it installed. I could also do php artisan with no errors but I also didn't see the "generators" section as anticipated. Added the service provider back to app/config/app.php and upon running "php artisan" I get this error: PHP Fatal error: Class 'Way\Generators\GeneratorsServiceProvder' not found in /home/vagrant/Code/public/larabook/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 157 PHP Stack trace: PHP 1. {main}() /home/vagrant/Code/public/larabook/artisan:0 PHP 2. require_once() /home/vagrant/Code/public/larabook/artisan:30 PHP 3. require() /home/vagrant/Code/public/larabook/bootstrap/start.php:60 PHP 4. Illuminate\Foundation\ProviderRepository->load() /home/vagrant/Code/public/larabook/vendor/laravel/framework/src/Illuminate/Foundation/start.php:210 PHP 5. Illuminate\Foundation\ProviderRepository->compileManifest() /home/vagrant/Code/public/larabook/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:57 PHP 6. Illuminate\Foundation\ProviderRepository->createProvider() /home/vagrant/Code/public/larabook/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:121 {"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Class 'Way\Generators\GeneratorsServiceProvder' not found","file":"/home/vagrant/Code/public/larabook/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php","line":157}}

headersalreadysent's avatar

Can you try composer dump-autoload before adding service provider to the app.php

Also you can try artisan clear-compiled

patrickbrouwers's avatar
Level 1

You have a typo. You forgot the i in Provider. It should be: Way\Generators\GeneratorsServiceProvider

3 likes
deeperdata's avatar

Wow, typical. Thank you patrickbrouwers. Works likes a charm now.

2 likes
sarbull's avatar

i'm using windows 7 and i'm getting this problem too, i can't install the way/generators, i tried everything and no, i dont have a typo. Any updates @deeperdata?

1 like

Please or to participate in this conversation.