0
0
Laravelframework~10 mins

Laravel installation with Composer - Interactive Code Practice

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

Complete the code to create a new Laravel project using Composer.

Laravel
composer create-project [1] my-laravel-app
Drag options to blanks, or click blank then click option'
Acodeigniter4/appstarter
Bsymfony/skeleton
Claravel/laravel
Dcakephp/app
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different framework's package name.
Forgetting to specify the package name.
2fill in blank
medium

Complete the command to install Laravel globally using Composer.

Laravel
composer global require [1]
Drag options to blanks, or click blank then click option'
Alaravel/framework
Blaravel/installer
Csymfony/console
Dphpunit/phpunit
Attempts:
3 left
💡 Hint
Common Mistakes
Installing the full framework globally instead of the installer.
Using unrelated package names.
3fill in blank
hard

Fix the error in the command to create a new Laravel project named 'blog'.

Laravel
composer create-project laravel/laravel [1]
Drag options to blanks, or click blank then click option'
Ablog
BBlog
Cblog-app
Dmyblog
Attempts:
3 left
💡 Hint
Common Mistakes
Using uppercase letters in the folder name.
Using spaces or special characters.
4fill in blank
hard

Fill both blanks to run the Laravel development server in the project directory.

Laravel
cd [1] && php [2] serve
Drag options to blanks, or click blank then click option'
Amy-laravel-app
Bartisan
Cpublic
Dvendor
Attempts:
3 left
💡 Hint
Common Mistakes
Trying to run the server from the wrong directory.
Using 'php public serve' instead of 'php artisan serve'.
5fill in blank
hard

Fill all three blanks to update Composer dependencies and clear Laravel cache.

Laravel
composer [1] && php artisan [2] && php artisan [3]
Drag options to blanks, or click blank then click option'
Aupdate
Bcache:clear
Cconfig:clear
Dinstall
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'composer install' instead of 'update' when updating packages.
Forgetting to clear cache after updates.