Top "Faker" questions

An extension or library used in certain programming languages or frameworks (namely Ruby or Yii2) for generating fake data for debug purposes and testing.

Faker.js random number between 2 values

This one is driving me a little mad, I'm sure it's simple but it doesn't seem to be documented anywhere. …

javascript faker
How to Generate Random String using Laravel Faker?

is there any way or method to generate fake string using laravel faker ? like in laravel we generate string upto 20 …

laravel faker fake-repositories
How to get future date in Faker

How do I get future dates with: https://github.com/fzaninotto/Faker#fakerproviderdatetime dateTime($max = 'now') i.e. what should …

php faker
Laravel - Seeding Many-to-Many Relationship

I have a users table and a roles table that has a many-to-many relationship. These two tables are connected to …

laravel laravel-5 factory faker laravel-seeding
NameError: uninitialized constant Faker

I am trying to run a simple bundle exec rake db:seed for my database in Rails 4. However, when running …

ruby-on-rails ruby ruby-on-rails-4 rspec faker
Laravel faker generate gender from name

What is the optimum way of generating gender using faker, having generated a name so that the gender matches the …

php laravel faker laravel-seeding
Faker generating strange phone numbers?

So I'm creating a database with Laravel and seeding it, and I ran into an issue where it generates a …

php phone-number faker
How to use faker.js in typescript?

As in topic. I cannot handle it :/ I've installed npm i faker and also npm i @types/faker --save-dev my …

typescript types faker
How to use faker.date.between faker.js

I want to generate some dates between two fixed values, but I don't know how to use faker.date.between …

javascript faker
Defining Laravel foreign keys with Model Factories, One to One & One to Many Relationships without creating unnecessary models

Recently I have been trying to seed my database using Laravel seeding through Model Factories and Faker. For simple schemas, …

php laravel laravel-5 faker laravel-seeding