From c8c4fc25626b0ba7010d4747c07897d43c51c445 Mon Sep 17 00:00:00 2001 From: bahramsadin Date: Sun, 25 Jun 2023 16:22:48 +0330 Subject: [PATCH] Merge default config with user config --- src/Provider/PaymentServiceProvider.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Provider/PaymentServiceProvider.php b/src/Provider/PaymentServiceProvider.php index d63f2ef..e9cb5e0 100644 --- a/src/Provider/PaymentServiceProvider.php +++ b/src/Provider/PaymentServiceProvider.php @@ -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); });