0
0
Laravelframework~10 mins

Maintenance mode in Laravel - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable maintenance mode in Laravel.

Laravel
php artisan [1]
Drag options to blanks, or click blank then click option'
Aup
Bdown
Cserve
Dmigrate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'up' instead of 'down' to enable maintenance mode.
Using unrelated commands like 'serve' or 'migrate'.
2fill in blank
medium

Complete the code to disable maintenance mode in Laravel.

Laravel
php artisan [1]
Drag options to blanks, or click blank then click option'
Aup
Bdown
Ccache:clear
Dconfig:cache
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'down' to disable maintenance mode.
Confusing with cache commands.
3fill in blank
hard

Fix the error in the command to enable maintenance mode with a secret bypass token.

Laravel
php artisan down --secret=[1]
Drag options to blanks, or click blank then click option'
Atoken
Bbypass
Csecret
D12345
Attempts:
3 left
💡 Hint
Common Mistakes
Using numbers only as token.
Using the word 'secret' as the token value.
4fill in blank
hard

Fill both blanks to customize the maintenance mode response with a retry time and a message.

Laravel
php artisan down --retry=[1] --message="[2]"
Drag options to blanks, or click blank then click option'
A60
B30
CSite is under maintenance, please try later.
DMaintenance ongoing, check back soon.
Attempts:
3 left
💡 Hint
Common Mistakes
Using retry time as a string instead of number.
Leaving message blank or using code instead of text.
5fill in blank
hard

Fill all three blanks to enable maintenance mode with IP bypass, secret token, and retry time.

Laravel
php artisan down --allow=[1] --secret=[2] --retry=[3]
Drag options to blanks, or click blank then click option'
A192.168.1.1
Bmytoken
C45
D10.0.0.1
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong IP format.
Mixing up secret token and IP address.
Using retry time as a string.