0
0
Laravelframework~10 mins

Config caching 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 cache the configuration in Laravel.

Laravel
php artisan [1]
Drag options to blanks, or click blank then click option'
Aconfig:cache
Broute:cache
Cview:cache
Dcache:clear
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'route:cache' instead of 'config:cache'.
Trying to clear cache instead of caching config.
2fill in blank
medium

Complete the code to clear the configuration cache in Laravel.

Laravel
php artisan [1]
Drag options to blanks, or click blank then click option'
Aconfig:cache
Bcache:clear
Croute:clear
Dconfig:clear
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'cache:clear' which clears all caches, not just config.
Using 'config:cache' which caches instead of clearing.
3fill in blank
hard

Fix the error in the command to cache config by replacing the wrong part.

Laravel
php artisan [1]
Drag options to blanks, or click blank then click option'
Acache:clear
Bconfig:cache
Croute:cache
Dconfig:clear
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'cache:clear' which clears all caches.
Using 'route:cache' which caches routes, not config.
4fill in blank
hard

Fill both blanks to create a command that caches config and then clears route cache.

Laravel
php artisan [1] && php artisan [2]
Drag options to blanks, or click blank then click option'
Aconfig:cache
Broute:clear
Ccache:clear
Droute:cache
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'route:cache' instead of 'route:clear' for the second command.
Clearing cache before caching config.
5fill in blank
hard

Fill all three blanks to run commands that clear config cache, cache config, and then clear view cache.

Laravel
php artisan [1] && php artisan [2] && php artisan [3]
Drag options to blanks, or click blank then click option'
Aconfig:clear
Bconfig:cache
Cview:clear
Dcache:clear
Attempts:
3 left
💡 Hint
Common Mistakes
Running 'config:cache' before clearing config cache.
Using 'cache:clear' instead of 'view:clear' for clearing views.