Skip to content

Commit

Permalink
Merge default config with user config (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
bahramsadin authored Jun 25, 2023
1 parent 14b1864 commit 6cb5683
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Provider/PaymentServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public function boot()
*/
public function register()
{
// Merge default config with user's config
$this->mergeConfigFrom(Payment::getDefaultConfigPath(), 'payment');

Request::overwrite('input', function ($key) {
return \request($key);
});
Expand Down

0 comments on commit 6cb5683

Please sign in to comment.