R

Ravina • 3.59K Points
Extraordinary

Q. Which command creates a model along with a migration?

  • (A) php artisan make:model User
  • (B) php artisan make:model User -m
  • (C) php artisan new:model User
  • (D) php artisan generate:model User
  • Correct Answer - Option(B)
  • Views: 8
  • Filed under category Laravel
  • Hashtags:

Explanation by: Ravina
The '-m' flag also creates a migration when creating a model.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.