Skip to content

Commit ab33ab4

Browse files
authored
[6.x] Publish service provider (#357)
1 parent d276c86 commit ab33ab4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Installer/Drivers/Driver.php

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public function install(string $composerBinary = 'global', InstallOptions ...$op
5353
->ensureDirectoriesExist(array_merge(static::directoriesToCreateForStack(), [
5454
app_path('Actions/Socialstream'),
5555
app_path('Policies'),
56+
app_path('Providers'),
5657
]))
5758
->installServiceProviders()
5859
->installRoutes()
@@ -135,6 +136,8 @@ protected function ensureDirectoriesExist(array $directories): static
135136
*/
136137
protected function installServiceProviders(): static
137138
{
139+
copy(__DIR__.'/../../../stubs/app/Providers/SocialstreamServiceProvider.php', app_path('Providers/SocialstreamServiceProvider.php'));
140+
138141
ServiceProvider::addProviderToBootstrapFile('App\Providers\SocialstreamServiceProvider');
139142

140143
return $this;

0 commit comments

Comments
 (0)