public function register() { if ($this->app->environment() == 'local') { $this->app->register('Laracasts\\Generators\\GeneratorsServiceProvider'); } }