<?php

return [
    'base_url' => env('LICENSE_API_URL', 'https://lm.spagreen.net/api/'),
    'api_key' => env('LICENSE_API_KEY', '01KJDWVG6SV6F2ZSF1A54GZJPV'),
    'product_id' => env('LICENSE_PRODUCT_ID', '428196C1'),
    'api_language' => env('LICENSE_API_LANGUAGE', 'en'),
    'current_version' => env('APP_VERSION', '1.0.0'),
    'verify_type' => env('LICENSE_VERIFY_TYPE', 'envato'),
    'license_file_path' => storage_path('app/.lic'),

    'require_lic_file_for_access' => filter_var(env('LICENSE_REQUIRE_LIC_FOR_ACCESS', true), FILTER_VALIDATE_BOOLEAN),

    'enable_system_updater' => filter_var(env('CMS_ENABLE_SYSTEM_UPDATER', true), FILTER_VALIDATE_BOOLEAN),

    'verification_period_days' => (int) env('LICENSE_VERIFICATION_PERIOD_DAYS', 1),

    'legacy_get_pc_url' => rtrim(env('LICENSE_LEGACY_GET_PC_URL', 'https://license.spagreen.net/get_pc'), '?&'),
];
