/** * Register the application services. */ public function register() { parent::register(); $this->app->singleton('db.factory', function ($app) { return new ConnectionFactory($app); }); }
/** * Register the application services. */ public function register() { parent::register(); $this->app->singleton('flash', function () { return $this->app->make(FlashNotifier::class); }); }
public function register() { parent::register(); $this->app->singleton('sweet-flash', function ($app) { return new Notifier($app['session.store']); }); }
/** * Register the application services. */ public function register() { parent::register(); $this->app->singleton('chartist', function ($app) { return new Builder(); }); }
/** * Register the application services. */ public function register() { parent::register(); $this->app->bindShared('floute', function ($app) { return new Floute($app['router']); }); }
public function register() { parent::register(); $this->app->singleton('social-share', function () { return new Share(); }); }
public function register() { parent::register(); $this->app->singleton('token.session', function ($app) { return new Manager($app['session']); }); }
/** * Register the application services. */ public function register() { parent::register(); $this->mergeConfig(); $this->commands(SeedTaxRates::class); $this->app->register(CountriesServiceProvider::class); }
/** * Register the application services. */ public function register() { parent::register(); $this->app->singleton('cookie-consent', function ($app) { return new Builder($app); }); }
/** * Register the application services. */ public function register() { parent::register(); $this->mergeConfig(); $this->app->singleton('geoip2', function ($app) { return new GeoIp2($app->config['geoip2']); }); }
public function register() { parent::register(); $this->mergeConfig(); $this->app->bind('recaptcha', function ($app) { return new Recaptcha($app->config['recaptcha.site_key'], $app->config['recaptcha.secret_key']); }); }
/** * Register the application services. */ public function register() { parent::register(); $this->mergeConfig(); $this->app->singleton('mentionBuilder', function ($app) { $form = new MentionBuilder($app['html'], $app['url'], $app['session.store']->getToken()); return $form->setSessionStore($app['session.store']); }); }
/** * Register the service provider. */ public function register() { parent::register(); $this->publishConfig(); $this->app->singleton('omnipay', function ($app) { $defaults = $app['config']->get('omnipay.defaults', []); return new GatewayManager($app, new GatewayFactory(), $defaults); }); }
public function register() { parent::register(); $this->mergeConfig(); // $this->app->singleton(SettingsManager::class, function ($app) { $this->app->singleton('settings-manager', function ($app) { return new SettingsManager($app); }); }
public function register() { parent::register(); $this->mergeConfig(); $this->app->bind(\BrianFaust\Picible\Contracts\PictureRepository::class, \BrianFaust\Picible\Repositories\EloquentPictureRepository::class); $this->app->singleton('BrianFaust\\Picible\\PicibleService', function (Application $app) { $service = new PicibleService($app->make('BrianFaust\\Picible\\Contracts\\PictureRepository'), $app, $this->setFilesystemAdapter($app), new ImageManager()); return $service; }); }
/** * Register the application services. */ public function register() { parent::register(); $this->mergeConfig(); if (!defined('SECURE_DOT_ENV')) { define('SECURE_DOT_ENV', true); } $this->commands(Console\Commands\DecryptEnvCommand::class); $this->commands(Console\Commands\EncryptEnvCommand::class); $this->commands(Console\Commands\GenerateEnvKeyCommand::class); $this->commands(Console\Commands\RefreshEnvCommand::class); $this->commands(Console\Commands\RestoreEnvCommand::class); }
/** * Register the application services. */ public function register() { parent::register(); $this->mergeConfig(); $this->commands([Console\SeedCountries::class, Console\SeedCurrencies::class, Console\SeedTimezones::class, Console\SeedTaxRates::class]); }
/** * Register the application services. */ public function register() { parent::register(); $this->commands(SeedLanguages::class); }
public function register() { parent::register(); $this->app->register(SocialiteServiceProvider::class); $this->app['events']->listen(UserHasSocialized::class, UserHasSocializedListener::class); }
public function register() { parent::register(); $this->commands([SeedTimezones::class]); }
/** * Register the application services. */ public function register() { parent::register(); $this->mergeConfig(); $this->registerBindings(); }
/** * Register the application services. */ public function register() { parent::register(); $this->app->bind('BrianFaust\\Leaderboard\\Contracts\\BoardRepository', 'BrianFaust\\Leaderboard\\Repositories\\EloquentBoardRepository'); }
/** * Register the application services. */ public function register() { parent::register(); $this->mergeConfig(); $this->commands([SeedCurrencies::class]); }
/** * Register the application services. */ public function register() { parent::register(); $this->commands(SeedCarriers::class); }
/** * Register the application services. */ public function register() { parent::register(); $this->app->register(SluggableServiceProvider::class); }