Performance: Maintenance mode
Maintenance mode affects page load speed by temporarily disabling normal application responses and serving a simple static page, improving server resource usage during downtime.
Jump into concepts and practice - no test required
<?php // Enable maintenance mode by running: // php artisan down // Laravel serves a simple static maintenance page without running full app logic
<?php // No maintenance mode, app still processes full requests Route::get('/', function () { return view('welcome'); });
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Full app request during maintenance | Many DOM nodes from full page | Multiple reflows due to dynamic content | High paint cost | [X] Bad |
| Static maintenance page served | Minimal DOM nodes | Single reflow | Low paint cost | [OK] Good |
php artisan down.php artisan up disables maintenance mode; others are invalid.php artisan down but users still access the app normally. What is the likely problem?php artisan down outside the Laravel project folder does nothing.down command was run in the wrong directory -> Option Aphp artisan down --allow=IP_ADDRESS.php artisan down --allow=IP_ADDRESS to whitelist the IP -> Option B