Factories
INFO
This page will describe how factories can be generated.
Examples
Columns
yaml
arch: 1.0.0
definitions:
models:
User:
columns:
id: id
name: string
email: string unique
email_verified_at: timestamp nullable
password: string
remember_token: rememberToken
current_team_id: foreignId nullable
profile_photo_path: string:2048 nullable
timestamps: timestamps
factories:
- User
Foreign Key
yaml
arch: 1.0.0
definitions:
models:
Foreign:
columns:
team_id: unsignedInteger foreign
factories:
- Foreign
Morphs Relationship
yaml
arch: 1.0.0
definitions:
models:
Morphs:
columns:
team: morphs
factories:
- Morphs