https://github.com/pxlrbt/faker-better-unique
Replaces the default Faker with an extended Faker instance that adds `betterUnique()` – `unique()` based on a key.
https://github.com/pxlrbt/faker-better-unique
fakerphp laravel
Last synced: 5 months ago
JSON representation
Replaces the default Faker with an extended Faker instance that adds `betterUnique()` – `unique()` based on a key.
- Host: GitHub
- URL: https://github.com/pxlrbt/faker-better-unique
- Owner: pxlrbt
- Created: 2024-01-12T09:36:45.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-12T09:57:22.000Z (about 2 years ago)
- Last Synced: 2025-03-13T07:09:34.924Z (12 months ago)
- Topics: fakerphp, laravel
- Language: PHP
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
composer require pxlrbt/faker-better-unique
```
## Credits
- [Dennis Koch](https://github.com/pxlrbt)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.