Skip to content

Conversation

ghostwriter
Copy link
Contributor

models:
  Post:
    tag: string:3
  • string:{limit} syntax will now generate $faker->regexify('[A-Za-z0-9]{limit}') instead of $faker->word.

Resolves #434

@jasonmccreary
Copy link
Collaborator

jasonmccreary commented Mar 5, 2021

Surprised Faker doesn't have characters or randomLetters. Would be much more readable than regexify.

@jasonmccreary jasonmccreary merged commit b7d20a8 into laravel-shift:master Mar 5, 2021
@ghostwriter ghostwriter deleted the support-faker-words-string-limit branch March 5, 2021 02:31
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.

Model definition using string generates faker words which are too long
2 participants