Skip to content

Configuration

TAVP configuration reference.

Environment Variables

env
APP_NAME=TAVP
APP_ENV=local
APP_KEY=base64:...
APP_DEBUG=true
APP_URL=http://localhost:8000

DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=tavp
DB_USERNAME=root
DB_PASSWORD=secret

MAIL_DRIVER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1025

Config Files

config/app.php

php
return [
    'name' => env('APP_NAME', 'TAVP'),
    'env' => env('APP_ENV', 'production'),
    'debug' => (bool) env('APP_DEBUG', false),
    'url' => env('APP_URL', 'http://localhost:8000'),
    'timezone' => 'UTC',
];

config/database.php

php
return [
    'default' => env('DB_CONNECTION', 'mysql'),
    'connections' => [
        'mysql' => [
            'host' => env('DB_HOST', '127.0.0.1'),
            'port' => (int) env('DB_PORT', 3306),
            'database' => env('DB_DATABASE', 'tavp'),
            'username' => env('DB_USERNAME', 'root'),
            'password' => env('DB_PASSWORD', ''),
        ],
    ],
];

config/cms.php

KeyDefaultDescription
storagedatabaseStorage driver: database or flatfile
admin.emails[]Allowed admin emails for OTP login
admin.brandTAVP CMSAdmin panel brand name
admin.otp_ttl_minutes10OTP expiry time
taxonomy.enabledtrueEnable categories + tags
revisions.enabledtrueEnable version history
search.enabledtrueEnable full-text search
api.enabledtrueEnable headless REST API
analytics.enabledfalseEnable analytics (requires tavp-analytics)
cache.enabledtrueEnable read-through cache
seo.enabledtrueEnable sitemap
webhooks.enabledfalseEnable webhook dispatch
publishing.enabledfalseEnable scheduled publishing

config/hub.php

php
return [
    'admin_prefix' => '/admin',
    'brand' => env('APP_NAME', 'My App'),
    'resources' => [
        // 'post' => [\App\Resources\PostResource::class],
    ],
];

config/hive.php

php
return [
    'gateways' => [
        'stripe' => [
            'driver' => 'stripe',
            'secret' => env('STRIPE_SECRET', ''),
        ],
        'midtrans' => [
            'driver' => 'midtrans',
            'server_key' => env('MIDTRANS_SERVER_KEY', ''),
        ],
    ],
];

CLI Commands for Config

bash
tavp env:list          # Show current config
tavp env:switch local  # Switch to local environment
tavp key:generate      # Generate APP_KEY + JWT_SECRET

Released under the MIT License.