Bird
0
0

You want to create a new Artisan command named SendEmails. Which command should you run?

hard📝 Application Q8 of 15
Laravel - Basics and Architecture
You want to create a new Artisan command named SendEmails. Which command should you run?
Aphp artisan create:command SendEmails
Bphp artisan make:command SendEmails
Cphp artisan generate:command SendEmails
Dphp artisan new:command SendEmails
Step-by-Step Solution
Solution:
  1. Step 1: Recall the Artisan syntax for creating custom commands

    The correct syntax uses 'make:command' to generate a new command class.
  2. Step 2: Identify the correct option

    php artisan make:command SendEmails matches the correct syntax exactly.
  3. Final Answer:

    php artisan make:command SendEmails -> Option B
  4. Quick Check:

    Custom command creation uses make:command [OK]
Quick Trick: Use make:command to create custom Artisan commands [OK]
Common Mistakes:
  • Using create:command instead of make:command
  • Wrong command verbs
  • Omitting 'php artisan'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Laravel Quizzes