Skip to content

Add support for tinyint type#29

Merged
TheDoctor0 merged 1 commit into
TheDoctor0:masterfrom
XedinUnknown:patch-2
Apr 27, 2024
Merged

Add support for tinyint type#29
TheDoctor0 merged 1 commit into
TheDoctor0:masterfrom
XedinUnknown:patch-2

Conversation

@XedinUnknown
Copy link
Copy Markdown
Contributor

When trying to generate a factory for a model/table with a field of type tinyint, the library will generate a value with fake()->word. That's because tinyint is not currently a registered type option, which causes the lib to fall back onto the xtring type.

This PR adds the tinyint type, allowing values from 0 to 9 to be generated randomly for that field.

@TheDoctor0
Copy link
Copy Markdown
Owner

Thank you for this contribution @XedinUnknown 🥇

@TheDoctor0 TheDoctor0 merged commit 09d0b34 into TheDoctor0:master Apr 27, 2024
@XedinUnknown XedinUnknown deleted the patch-2 branch April 27, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants