Laravel-4-Generators icon indicating copy to clipboard operation
Laravel-4-Generators copied to clipboard

Followed instructions exactly, all I get is: GeneratorsServiceProvider' not found

Open oedipa opened this issue 11 years ago • 5 comments

After running the Composer update I get this when I run php artisan.

PHP Fatal error: Class 'Way\Generators\GeneratorsServiceProvider' not found in /var/www/laravel/bootstrap/compiled.php on line 4214 {"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Class 'Way\Generators\GeneratorsServiceProvider' not found","file":"/var/www/laravel/bootstrap/compiled.php","line":4214}}

oedipa avatar Jun 11 '14 23:06 oedipa

Try a composer-dumpautoload and try again. If that still doesn't work, check your vendor/ directory, and make sure that there's a Way folder within it.

laracasts avatar Jun 12 '14 00:06 laracasts

Ok, it never downloaded or installed to vendors. So I did composer dump-autoload and ran composer update again, still no dice. Only by running composer require way/generators and then answering the version question with 2.* did I get it to install. No idea why it wouldn't just install with the reference in my .json file. Thanks!

oedipa avatar Jun 12 '14 19:06 oedipa

I had same issue, I changed "way/generators": "~3.0" for "way/generators": "dev-master" and it finally worked:

$ composer update
Loading composer repositories with package information
Initializing PEAR repository http://pear.horde.org
Updating dependencies (including require-dev)
  - Installing way/generators (dev-master fb4bc74)
    Downloading: 100%

Writing lock file
Generating autoload files
Generating optimized class loader

Not quite sure why it did not download at first. Thanks

Edit: nevermind, problem was that I had a typo in my composer.json. should be like this:

    "require-dev": {
        "way/generators": "dev-master"
    },

GabLeRoux avatar Sep 05 '14 12:09 GabLeRoux

You have to run: 1 - sudo composer clearcache 2 - sudo composer update

I hope this works out for you. Good luck!

ayelen117 avatar Aug 25 '15 22:08 ayelen117

@GabLeRoux it works. thank you 👍

khalilit avatar Jun 23 '17 14:06 khalilit