0
0
Laravelframework~10 mins

Optimization commands 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 clear the application cache in Laravel.

Laravel
php artisan [1]
Drag options to blanks, or click blank then click option'
Aroute:cache
Bconfig:cache
Ccache:clear
Dview:clear
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'config:cache' which caches configuration instead of clearing cache.
Using 'route:cache' which caches routes instead of clearing cache.
2fill in blank
medium

Complete the code to cache the configuration files in Laravel.

Laravel
php artisan [1]
Drag options to blanks, or click blank then click option'
Acache:clear
Broute:clear
Cview:cache
Dconfig:cache
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'cache:clear' which clears cache instead of caching config.
Using 'route:clear' which clears route cache.
3fill in blank
hard

Fix the error in the command to cache routes in Laravel.

Laravel
php artisan [1]
Drag options to blanks, or click blank then click option'
Aroute:clear
Broute:cache
Ccache:clear
Dconfig:cache
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'route:clear' which clears route cache instead of caching routes.
Using 'cache:clear' which clears all cache.
4fill in blank
hard

Fill both blanks to clear compiled views and optimize the application.

Laravel
php artisan [1] && php artisan [2]
Drag options to blanks, or click blank then click option'
Aview:clear
Boptimize
Ccache:clear
Dconfig:cache
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'cache:clear' instead of 'view:clear' for clearing views.
Using 'config:cache' instead of 'optimize' for optimization.
5fill in blank
hard

Fill all three blanks to clear cache, cache config, and cache routes in one line.

Laravel
php artisan [1] && php artisan [2] && php artisan [3]
Drag options to blanks, or click blank then click option'
Aview:clear
Bconfig:cache
Croute:cache
Dcache:clear
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing order of commands causing cache not to be cleared before caching.
Using 'view:clear' instead of 'cache:clear' for clearing cache.