Replaces the default Faker with an extended Faker instance that adds betterUnique() – unique() based on a key.
Find a file
2024-01-12 10:36:29 +01:00
.github/workflows Initial 2024-01-12 10:36:29 +01:00
src Initial 2024-01-12 10:36:29 +01:00
composer.json Initial 2024-01-12 10:36:29 +01:00
README.md Initial 2024-01-12 10:36:29 +01:00

Faker betterUnique()

Better unique allows you to pass a key for separate unique generator instances:

$faker->betterUnique('user_id')->numberBetween(1, 1000);

Installation

You can install the package via composer:

composer require pxlrbt/faker-better-unique

Credits

License

The MIT License (MIT). Please see License File for more information.