Path Exclusions

Path exclusions allow specific routes to remain accessible during maintenance.

Configuration

// config/curtain.php
'excluded_paths' => [
    // Core system paths
    '_debugbar/*',        // Debug bar
    'horizon/*',          // Laravel Horizon
    'nova/*',             // Laravel Nova
    
    // API endpoints
    'api/*',              // API routes
    'webhook/*',          // Webhooks
    
    // Health checks
    'health',             // Health check endpoint
    'ping',               // Ping endpoint
],

Implementation

Pattern Types

  • Exact match: 'health'

  • Wildcard: 'api/*'

  • Multiple segments: 'api/v1/*'

  • Root path: '/'

Last updated