public function register() { $this->app['wkhtml2pdf'] = $this->app->share(function ($app) { return new Wkhtml2pdf(new LaravelConfig($app['config']), new LaravelView($app['view'])); }); }