diff --git a/src/RapydServiceProvider.php b/src/RapydServiceProvider.php index 58550ee9..68097cab 100644 --- a/src/RapydServiceProvider.php +++ b/src/RapydServiceProvider.php @@ -23,12 +23,11 @@ public function boot() $this->publishes([__DIR__.'/../config/rapyd.php' => config_path('rapyd.php')], 'config'); $this->mergeConfigFrom( __DIR__.'/../config/rapyd.php', 'rapyd'); - - - $this->publishes([ - __DIR__.'/routes.php' => app_path('/Http/rapyd.php'), - ], 'routes'); + // Register views to be published by the publish command. + $this->publishes([__DIR__ . '/../views' => base_path('resources/views/vendor/rapyd')]); + // routes + $this->publishes([__DIR__.'/routes.php' => app_path('/Http/rapyd.php')], 'routes'); if (! $this->app->routesAreCached()) { require __DIR__.'/routes.php';