<?php

declare(strict_types=1);

return [
    'name' => env(
        'APP_NAME',
        'Traditional Authorities Conference RSVP'
    ),

    'environment' => env(
        'APP_ENV',
        'production'
    ),

    'debug' => filter_var(
        env('APP_DEBUG', false),
        FILTER_VALIDATE_BOOL
    ),

    'url' => rtrim(
        (string) env(
            'APP_URL',
            'https://linkage.ledaapps.co.za'
        ),
        '/'
    ),

    'timezone' => env(
        'APP_TIMEZONE',
        'Africa/Johannesburg'
    ),

    'session' => [
        'name' => env(
            'SESSION_NAME',
            'linkage_conference_session'
        ),

        'lifetime' => (int) env(
            'SESSION_LIFETIME',
            7200
        ),

        'secure' => filter_var(
            env('SESSION_SECURE', true),
            FILTER_VALIDATE_BOOL
        ),

        'same_site' => env(
            'SESSION_SAMESITE',
            'Lax'
        ),
    ],
];