Skip to content

Commit 8116b31

Browse files
fix(serviceprovider): Add ability to publish config files
1 parent fc67d1c commit 8116b31

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/PaystackServiceProvider.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,17 @@ class PaystackServiceProvider extends ServiceProvider {
1313
*/
1414
protected $defer = false;
1515

16+
/**
17+
* Publishes all the config file this package needs to function
18+
* @return void
19+
*/
1620
public function boot()
1721
{
22+
$config = realpath(__DIR__.'/../resources/config/paystack.php');
23+
24+
$this->publishes([
25+
$config => config_path('paystack.php')
26+
]);
1827
}
1928

2029
/**

0 commit comments

Comments
 (0)