First Time Setup

Choose your template

Curtain comes with two built-in templates:

  • default: Clean and Minimal Design

  • modern : Contemporary and Modern Design

Configure Access Control

Decide who can access your application during maintenance:

// config/curtain.php

'allowed_ips' => [
    '127.0.0.1',            // Local development
    '192.168.1.100',        // Office IP
],

'excluded_paths' => [
    'api/*',                // Keep API accessible
    'health-check',         // Monitor endpoints
    'webhook/*',            // External services
],

Template Customization

If you want to customize templates:

  • Publish Views

php artisan vendor:publish --tag="curtain-views"
  • Edit Templates in

resources/views/vendor/curtain/templates/

Common Use Cases

  • Scheduled Maintenance:

php artisan curtain:up --timer="2 hours" --message="Server upgrade in progress"
  • Emergency Maintenance:

php artisan curtain:up --message="Emergency maintenance" --refresh

Last updated