Skip to content

Commit d00ee78

Browse files
committed
patch wallet service provider
1 parent 772c54c commit d00ee78

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/WalletServiceProvider.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ public function boot(): void
2424
return;
2525
}
2626

27-
$this->publishes([
28-
\dirname(__DIR__) . '/config/config.php' => config_path('wallet.php'),
29-
], 'laravel-wallet-config');
27+
if (\function_exists('config_path')) {
28+
$this->publishes([
29+
\dirname(__DIR__) . '/config/config.php' => config_path('wallet.php'),
30+
], 'laravel-wallet-config');
31+
}
3032

3133
$this->publishes([
3234
\dirname(__DIR__) . '/database/migrations_v1/' => database_path('migrations'),

0 commit comments

Comments
 (0)