0
0
Laravelframework~5 mins

Maintenance mode in Laravel - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Aphp artisan maintenance
Bphp artisan up
Cphp artisan down
Dphp artisan start
How do you bring the Laravel app back online after maintenance?
Aphp artisan up
Bphp artisan resume
Cphp artisan start
Dphp artisan restart
What does the --allow option do when enabling maintenance mode?
AAllows all users to bypass maintenance
BAllows caching during maintenance
CAllows database access only
DAllows specific IPs to access the app
Which HTTP header does Laravel set to tell browsers when to retry during maintenance?
AContent-Type
BRetry-After
CAuthorization
DCache-Control
What will users see when the Laravel app is in maintenance mode?
AA custom maintenance page
BThe homepage
CA 404 error page
DA login form
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.