Initial commit
This commit is contained in:
22
src/config/config.php
Normal file
22
src/config/config.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
return [
|
||||
'app' => [
|
||||
'name' => getenv('APP_NAME') ?: 'QR Attendance System',
|
||||
'timezone' => getenv('APP_TZ') ?: 'Asia/Manila',
|
||||
'base_url' => rtrim(getenv('APP_BASE_URL') ?: '', '/'),
|
||||
],
|
||||
'db' => [
|
||||
'host' => getenv('DB_HOST') ?: '127.0.0.1',
|
||||
'port' => getenv('DB_PORT') ?: '3306',
|
||||
'name' => getenv('DB_NAME') ?: 'attendance_system',
|
||||
'user' => getenv('DB_USER') ?: 'root',
|
||||
'pass' => getenv('DB_PASS') ?: '',
|
||||
'charset' => 'utf8mb4',
|
||||
],
|
||||
'qr' => [
|
||||
'provider' => strtolower(getenv('QR_PROVIDER') ?: 'auto'),
|
||||
'goqr_size' => getenv('QR_SIZE') ?: '300x300',
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user