Model
Note: you can specify as many relation models with their parameters as you want, separated with |
character
Make model with soft deletes
Make model with hasOne relations
Make model with hasMany relations
Make model with belongsTo relations
Make model with belongsToMany relations
If you specify -m option to create migration of model with --belongsTo option, it'll also write relation columns. For example:
Output
Multiple relations example
Last updated