registerSeedCommand(); $this->app->singleton('seeder', function() { return new Seeder; }); $this->commands('command.seed'); } /** * Register the seed console command. * * @return void */ protected function registerSeedCommand() { $this->app->singleton('command.seed', function($app) { return new SeedCommand($app['db']); }); } /** * Get the services provided by the provider. * * @return array */ public function provides() { return array('seeder', 'command.seed'); } }