Source of file DocumentTemplatesServiceProvider.php
Size: 1,830 Bytes - Last Modified: 2019-09-16T10:31:02+00:00
/home/vagrant/www/document-templates/src/DocumentTemplatesServiceProvider.php
| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 | <?phpnamespace BWF\DocumentTemplates; use Illuminate\Support\Facades\App; use Illuminate\Support\ServiceProvider; class DocumentTemplatesServiceProvider extends ServiceProvider {public function boot() { $this->loadViewsFrom(__DIR__ . '/../resources/views', 'document-templates'); $this->loadMigrationsFrom(__DIR__ . '/../database/'); $this->loadRoutesFrom(__DIR__ . '/../routes/routes.php'); if ($this->app->runningInConsole()) { $this->publishes([ __DIR__ . '/../database/migrations/' => database_path('migrations'), ], 'migrations'); $this->publishes([ __DIR__ . '/../resources/views' => base_path('resources/views/vendor/document-templates'), ], 'views'); $this->publishes([ __DIR__ . '/../resources/js/components' => base_path('resources/js/vendor/document-templates/components'), ], 'components'); $this->publishes([ __DIR__ . '/../config/document_templates.php' => config_path('document_templates.php'), ], 'config'); $this->publishes([ __DIR__ . '/../resources/js/ckeditor' => resource_path('js/vendor/document-templates/js/ckeditor'), __DIR__ . '/../public/js/lib/ckeditor' => public_path('vendor/document-templates/js/lib/ckeditor'), ], 'ckeditor'); $this->publishes([ __DIR__ . '/../resources/js/document-templates.js' => resource_path('js/vendor/document-templates/js/document-templates.js'), ], 'js'); } } public function register() { /* * Register the service provider for the dependency. */App::register(\Barryvdh\DomPDF\ServiceProvider::class); } } |