12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace :namespace;
- use Illuminate\Support\ServiceProvider;
- class :class_nameServiceProvider extends ServiceProvider
- {
- /**
- * {@inheritdoc}
- */
- public function boot()
- {
- $extension = :class_name::make();
- if ($views = $extension->views()) {
- $this->loadViewsFrom($views, :class_name::NAME);
- }
- if ($lang = $extension->lang()) {
- $this->loadTranslationsFrom($lang, :class_name::NAME);
- }
- if ($migrations = $extension->migrations()) {
- $this->loadMigrationsFrom($migrations);
- }
- $this->app->booted(function () use ($extension) {
- $extension->routes(__DIR__.'/../routes/web.php');
- });
- // if ($this->app->runningInConsole() || request()->getMethod() == 'POST') {
- // $this->publishes([__DIR__.'/../config' => config_path()]);
- // }
- }
- /**
- * Register the service provider.
- *
- * @return void
- */
- public function register()
- {
- }
- }
|