# How Curtain Works

Curtain extends Laravel's native maintenance mode by introducing several key components that work together:

* Core Components
  * Custom Middleware for handling maintenance requests
  * Service layer for managing maintenance state
  * Template system for rendering maintenance pages
  * Timer system for automatic disable
* Request Flow

<figure><img src="https://3533049697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZTsR4XvKygqP6pGcMYsA%2Fuploads%2FgZMKUxAuLNL4MwInhkML%2FScreenshot%202025-02-07%20103817.png?alt=media&#x26;token=b8b24a10-717b-485e-926d-400c06dc0c3c" alt=""><figcaption></figcaption></figure>
