Commands.app

php artisan make:model

Code Generation

Create a new Eloquent model

Options & Flags
Available options for this command
-m

Create migration file

-c

Create controller

-r

Create resource controller

-f

Create factory

-s

Create seeder

-a

Create all (migration, factory, seeder, controller)

Examples
Common usage examples

Create a model

php artisan make:model Post

Create model with migration

php artisan make:model Post -m

Create model with all related files

php artisan make:model Post -a
Related Commands
You might also find these useful