Skip to content

Conversation

jasonmccreary
Copy link
Collaborator

Given the rise in bugs related to the faker data when generating model factories, I revisited all column types in Laravel to ensure they are covered.

Some notable changes:

  • Stricter numeric ranges for integer types, with special logic to properly handle signed and unsigned values
  • uuid columns only assume a belongsTo relationship if the column name ends with the Laravel convention of _id.
  • The default data type will now be word to prevent invalid code generation (i.e. $faker->,)

Closes #261

@jasonmccreary jasonmccreary merged commit fecabdc into master Jun 12, 2020
@jasonmccreary jasonmccreary deleted the issue-261 branch June 12, 2020 14:54
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.

Generate fake type data for date types

1 participant