app->bind('pdf.driver', PdfService::class); $this->app->singleton(PdfConfigurationService::class); $this->app->bind( PdfConfigurator::class, fn (Application $app): PdfConfigurationService => $app->make(PdfConfigurationService::class), ); } public function boot(): void { Gate::define('manage pdf config', [PdfAccessPolicy::class, 'manageConfiguration']); View::addNamespace('pdf_templates', storage_path('app/templates/pdf')); $this->commands([ ComparePdfDriversCommand::class, CreateTemplateCommand::class, ]); } }