0
0
Laravelframework~10 mins

Laravel project structure - Interactive Code Practice

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

Complete the code to specify the directory where Laravel stores its route files.

Laravel
routes/[1]
Drag options to blanks, or click blank then click option'
Aapp.php
Bweb.php
Cconfig.php
Ddatabase.php
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing configuration files instead of route files.
Confusing app directory files with route files.
2fill in blank
medium

Complete the code to indicate the directory where Laravel stores its controllers.

Laravel
app/Http/[1]
Drag options to blanks, or click blank then click option'
AViews
BMigrations
CControllers
DModels
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting 'Models' or 'Views' instead of 'Controllers'.
Confusing migrations with controllers.
3fill in blank
hard

Fix the error in the path to the Laravel configuration directory.

Laravel
base_path('[1]')
Drag options to blanks, or click blank then click option'
Aconfig
Bconfigs
Cconfiguration
Dconf
Attempts:
3 left
💡 Hint
Common Mistakes
Using plural or incorrect directory names.
Assuming configuration files are in 'configs' or 'configuration'.
4fill in blank
hard

Fill both blanks to complete the Laravel artisan command that creates a new model and migration.

Laravel
php artisan make:[1] [2] --migration
Drag options to blanks, or click blank then click option'
Amodel
Bcontroller
CUser
DPost
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'controller' instead of 'model' for the first blank.
Choosing a wrong model name.
5fill in blank
hard

Fill all three blanks to complete the Laravel directory path for storing Blade view files.

Laravel
resources/[1]/[2]/[3].blade.php
Drag options to blanks, or click blank then click option'
Aviews
Blayouts
Capp
Dcontrollers
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'controllers' instead of 'views' or 'layouts'.
Confusing the folder names or order.