app->singleton('es', function ($app) { return new EsNative($app['config']['database.es']); }); } /** * Get the services provided by the provider. * * @return array */ public function provides() { return ['es']; } }