PHPackages                             mbezhanov/laravel-faker-provider-collection - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. mbezhanov/laravel-faker-provider-collection

ActiveLibrary[Testing &amp; Quality](/categories/testing)

mbezhanov/laravel-faker-provider-collection
===========================================

A collection of custom Faker providers for your Laravel applications

3.2.0(1y ago)2270.3k↓18%6[1 PRs](https://github.com/mbezhanov/laravel-faker-provider-collection/pulls)1MITPHPPHP ^8.1

Since Oct 4Pushed 1y ago2 watchersCompare

[ Source](https://github.com/mbezhanov/laravel-faker-provider-collection)[ Packagist](https://packagist.org/packages/mbezhanov/laravel-faker-provider-collection)[ RSS](/packages/mbezhanov-laravel-faker-provider-collection/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (12)Used By (1)

laravel-faker-provider-collection
=================================

[](#laravel-faker-provider-collection)

This package contains a [Service Provider](https://laravel.com/docs/10.x/providers) that automatically registers the [faker-provider-collection](https://github.com/mbezhanov/faker-provider-collection) library with your [Laravel](https://laravel.com/) application.

Detailed information about the various Faker providers exposed by [faker-provider-collection](https://github.com/mbezhanov/faker-provider-collection) can be found [here](https://github.com/mbezhanov/faker-provider-collection/blob/master/README.md).

Quickstart
----------

[](#quickstart)

Add the provider to your Laravel project with [Composer](https://getcomposer.org/):

```
composer require --dev mbezhanov/laravel-faker-provider-collection
```

Add the `FakerServiceProvider` class to your `./bootstrap/providers.php` file:

```
return [
    // other provider definitions
    Bezhanov\Faker\Laravel\FakerServiceProvider::class,
];
```

At this point, you should be able to use the all the additional faker providers bundled with the library in your [Model Factories](https://laravel.com/docs/11.x/seeding#using-model-factories)

In example, assuming you have defined the following model factory:

```
