Read Paystack keys from platform admin settings.
Deploy Ladill Mini / deploy (push) Failing after 1m15s

Add a platform DB connection and PlatformSetting model so Mini uses the same admin-panel Paystack credentials as the monolith and other extracted apps.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-07 19:06:23 +00:00
co-authored by Cursor
parent 987f7dce0c
commit 8f9fc426c3
6 changed files with 69 additions and 5 deletions
+20
View File
@@ -64,6 +64,26 @@ return [
]) : [],
],
// Read-only access to platform admin settings (Paystack keys, etc.).
'platform' => [
'driver' => 'mysql',
'host' => env('PLATFORM_DB_HOST', env('DB_HOST', '127.0.0.1')),
'port' => env('PLATFORM_DB_PORT', env('DB_PORT', '3306')),
'database' => env('PLATFORM_DB_DATABASE', 'ladilldb'),
'username' => env('PLATFORM_DB_USERNAME', env('DB_USERNAME', 'root')),
'password' => env('PLATFORM_DB_PASSWORD', env('DB_PASSWORD', '')),
'unix_socket' => env('PLATFORM_DB_SOCKET', env('DB_SOCKET', '')),
'charset' => env('DB_CHARSET', 'utf8mb4'),
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
(PHP_VERSION_ID >= 80500 ? Mysql::ATTR_SSL_CA : PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'),
]) : [],
],
'mariadb' => [
'driver' => 'mariadb',
'url' => env('DB_URL'),