/** * {@inheritdoc} */ public function register() { $app = $this->app; // Register config $this->app->config->package('rcrowe/raven', __DIR__ . '/config'); // Bind laravel handler $this->app->bindIf('log.sentry.handler', function () use($app) { return new Laravel(null, $app['queue']); }); // Bind raven client $this->app->bind('log.sentry', function () use($app) { $client = new Client($app->config->get('raven::dsn')); $client->addHandler($app->make('log.sentry.handler')); return $client; }); }