JeffreyWay / Laravel-4-Generators

Rapidly speed up your Laravel workflow with generators
https://packagist.org/packages/way/generators
MIT License
27 stars 9 forks source link

Not working on local development #447

Closed Tropicalista closed 9 years ago

Tropicalista commented 9 years ago

If I add generators to local providers app crashes, simply commented out the generators class all works perfectly.

'providers' => array(

    'Barryvdh\Debugbar\ServiceProvider', // Debugger
    //'Way\Generators\GeneratorsServiceProvider', // Generator

), 
mikeerickson commented 9 years ago

What version of Laravel are you using?

If L5, it is currently not working.

jasonherndon commented 9 years ago

I'm running into the same problem as well. Is that what the "Build:error" tag on the front of the github page is for?

Tropicalista commented 9 years ago

I'm on laravel 4.2. I use confide and entrust, not sure if there is some conflicts...

daltonamitchell commented 9 years ago

Having the same issue. It looks like the boot() method is failing in the Service Provider

    /**
     * Booting
     */
    public function boot()
    {
        $this->package('way/generators');
    }

Looks like Illuminate\Support\ServiceProvider no longer has a package() reference so I changed to $this->app->package('way/generators') as a temp fix. I just started a new L5 today. I wonder if this is a bug from a recent change.

_UPDATE_

Artisan doesn't crash but package commands don't seem to be present in artisan. I'll try to do some more digging tomorrow.

pandasauce commented 9 years ago

This is a duplicate of #433 #436 #437 #444

No permanent solution as of yet.

phirschybar commented 9 years ago

I think $this->package() is not needed any more. At least it is no longer in the Laravel docs. The boot() method seems to be only for publishing assets, migration files, public files, config files, etc.