From 6cb56837e79bca1a95dae743a573d2cf316f52b6 Mon Sep 17 00:00:00 2001 From: Bahram Sadin Date: Sun, 25 Jun 2023 18:40:38 +0330 Subject: [PATCH] Merge default config with user config (#284) --- 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); });