Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to clear the application cache in Laravel.
Laravel
php artisan [1] Drag options to blanks, or click blank then click option'
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.
✗ Incorrect
The cache:clear command clears the application cache in Laravel.
2fill in blank
mediumComplete the code to cache the configuration files in Laravel.
Laravel
php artisan [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'cache:clear' which clears cache instead of caching config.
Using 'route:clear' which clears route cache.
✗ Incorrect
The config:cache command caches the configuration files to boost performance.
3fill in blank
hardFix the error in the command to cache routes in Laravel.
Laravel
php artisan [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'route:clear' which clears route cache instead of caching routes.
Using 'cache:clear' which clears all cache.
✗ Incorrect
The route:cache command caches the routes to improve performance.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'cache:clear' instead of 'view:clear' for clearing views.
Using 'config:cache' instead of 'optimize' for optimization.
✗ Incorrect
view:clear clears compiled views, and optimize optimizes the framework for better performance.
5fill in blank
hardFill 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'
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.
✗ Incorrect
This sequence clears cache, caches config, and caches routes to optimize Laravel.