R

Ravina • 3.96K Points
Extraordinary

Q. How do you define a model factory in Laravel?

  • (A) Using Seeder
  • (B) Using Migration
  • (C) Using Factory class
  • (D) Using Controller
  • Correct Answer - Option(C)
  • Views: 28
  • Filed under category Laravel
  • Hashtags:

Explanation by: Ravina

Factories are defined in Factory classes to generate fake data for models.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.