A complete platform for building web applications.

make:model

Create new model class file in this path app/Models/NameSpace/

php spark make:model NameSpace ClassName [list fields separated by comma | -t table_name]

Examples

Create Todo model class with Myapp namespace.

php spark make:model Myapp Todo "id,title,status,created_by,created_at,updated_by,updated_at"

Create Todo model class with Myapp namespace from database table.

php spark make:model Myapp Todo -t todos