Skip to content

Commit f521e1c

Browse files
committed
feat: add support for provider
1 parent 89fc9ac commit f521e1c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Core.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,18 @@ public static function loadApplicationConfig()
7272
if (storage()->exists(LibPath())) {
7373
static::loadLibs();
7474
}
75+
76+
if (
77+
class_exists('Leaf\Billing\Stripe') ||
78+
class_exists('Leaf\Billing\PayStack') ||
79+
class_exists('Leaf\Billing\LemonSqueezy')
80+
) {
81+
billing(Config::getStatic('mvc.config.billing'));
82+
}
83+
84+
if (storage()->exists('app/index.php')) {
85+
require 'app/index.php';
86+
}
7587
}
7688
}
7789

0 commit comments

Comments
 (0)