0
0
Laravelframework~10 mins

Development server 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 start the Laravel development server.

Laravel
php artisan [1]
Drag options to blanks, or click blank then click option'
Aserve
Bstart
Crun
Dlaunch
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' instead of 'serve'.
Using 'run' or 'launch' which are not valid artisan commands.
2fill in blank
medium

Complete the command to specify a custom port for the Laravel development server.

Laravel
php artisan serve --port=[1]
Drag options to blanks, or click blank then click option'
Astart
Bserve
C8080
Drun
Attempts:
3 left
💡 Hint
Common Mistakes
Using command words instead of a port number.
Omitting the port number or using invalid values.
3fill in blank
hard

Fix the error in the command to start the Laravel server on a specific host.

Laravel
php artisan serve --host=[1]
Drag options to blanks, or click blank then click option'
Alocalhost
Blocal
Chost
D127.0.0
Attempts:
3 left
💡 Hint
Common Mistakes
Using incomplete IP addresses like '127.0.0'.
Using generic words like 'local' or 'host' which are invalid.
4fill in blank
hard

Fill both blanks to run the Laravel development server on host 0.0.0.0 and port 9000.

Laravel
php artisan serve --host=[1] --port=[2]
Drag options to blanks, or click blank then click option'
A0.0.0.0
B9000
Clocalhost
D8000
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up host and port values.
Using invalid host or port numbers.
5fill in blank
hard

Fill all three blanks to run the Laravel server on host 127.0.0.1, port 8081, and specify the environment as local.

Laravel
php artisan serve --host=[1] --port=[2] --env=[3]
Drag options to blanks, or click blank then click option'
A127.0.0.1
B8081
Clocal
Dproduction
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'production' instead of 'local' for environment.
Using invalid IP addresses or ports.