Recall & Review
beginner
What is Laravel's maintenance mode?
Maintenance mode temporarily disables access to your Laravel application for users, showing a custom message while you perform updates or fixes.
Click to reveal answer
beginner
How do you enable maintenance mode in Laravel?
Run the command
php artisan down in your terminal to enable maintenance mode.Click to reveal answer
beginner
How do you disable maintenance mode in Laravel?
Run the command
php artisan up to bring your application back online.Click to reveal answer
intermediate
How can you allow certain IP addresses to access the app during maintenance mode?
You can pass the
--allow=IP_ADDRESS option with php artisan down to whitelist IPs that can still access the app.Click to reveal answer
intermediate
What is the purpose of the
retry option in Laravel's maintenance mode?The
--retry=SECONDS option tells browsers how often to retry accessing the app, improving user experience during downtime.Click to reveal answer
Which command enables maintenance mode in Laravel?
✗ Incorrect
The command
php artisan down puts the app into maintenance mode.How do you bring the Laravel app back online after maintenance?
✗ Incorrect
Use
php artisan up to disable maintenance mode.What does the
--allow option do when enabling maintenance mode?✗ Incorrect
The
--allow option whitelists IP addresses during maintenance.Which HTTP header does Laravel set to tell browsers when to retry during maintenance?
✗ Incorrect
Laravel sets the
Retry-After header to control retry timing.What will users see when the Laravel app is in maintenance mode?
✗ Incorrect
Users see a maintenance page explaining the app is temporarily offline.
Explain how to enable and disable maintenance mode in Laravel and why it is useful.
Think about commands and the purpose of maintenance mode.
You got /4 concepts.
Describe how you can allow certain users to access the Laravel app during maintenance mode.
Consider how to whitelist IPs with artisan.
You got /4 concepts.