make:model

Create a new Eloquent model class

Options

  • all - Generate a migration, factory, and resource controller for the model Optional
  • controller - Create a new controller for the model Optional
  • factory - Create a new factory for the model Optional
  • force - Create the class even if the model already exists Optional
  • migration - Create a new migration file for the model Optional
  • pivot - Indicates if the generated model should be a custom intermediate table model Optional
  • resource - Indicates if the generated controller should be a resource controller Optional

Arguments

  • name - The name of the class Required
php artisan make:model [-a|--all] [-c|--controller] [-f|--factory] [--force] [-m|--migration] [-p|--pivot] [-r|--resource] [--] <name>