Bird
0
0

Which of the following is the correct syntax to start the Laravel development server on a custom port 8080?

easy📝 Syntax Q12 of 15
Laravel - Basics and Architecture
Which of the following is the correct syntax to start the Laravel development server on a custom port 8080?
Aphp artisan serve --port=8080
Bphp artisan serve --p 8080
Cphp artisan start --port 8080
Dphp serve --port=8080
Step-by-Step Solution
Solution:
  1. Step 1: Recall the correct command format

    The Laravel command to serve with a custom port uses --port= option.
  2. Step 2: Check each option

    php artisan serve --port=8080 matches the correct syntax. Options A, B, and D use incorrect flags or commands.
  3. Final Answer:

    php artisan serve --port=8080 -> Option A
  4. Quick Check:

    Custom port uses --port= [OK]
Quick Trick: Use double dash and equals for port: --port= [OK]
Common Mistakes:
  • Using single dash -p instead of --port=
  • Using wrong command like 'php artisan start'
  • Omitting 'artisan' in the command

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Laravel Quizzes