PHPackages                             naoray/laravel-factory-prefill - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. naoray/laravel-factory-prefill

AbandonedArchivedPackage[Utility &amp; Helpers](/categories/utility)

naoray/laravel-factory-prefill
==============================

Prefills factories with faker method suggestions

v3.0.1(5y ago)1018.3k6[2 PRs](https://github.com/Naoray/laravel-factory-prefill/pulls)MITPHP

Since Nov 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Naoray/laravel-factory-prefill)[ Packagist](https://packagist.org/packages/naoray/laravel-factory-prefill)[ GitHub Sponsors](https://github.com/Naoray)[ RSS](/packages/naoray-laravel-factory-prefill/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (4)Versions (22)Used By (0)

laravel-factory-prefill
=======================

[](#laravel-factory-prefill)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/e94e32ff01c42b607e5ca3935d4a285101abd17ddbb1bc0d676622f76ffe38f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e616f7261792f6c61726176656c2d666163746f72792d70726566696c6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/naoray/laravel-factory-prefill)[![Build Status](https://camo.githubusercontent.com/bf5a55183a358d262a3b43182d0317bc39c0f0aace132616c572de3515ab207d/68747470733a2f2f7472617669732d63692e6f72672f4e616f7261792f6c61726176656c2d666163746f72792d70726566696c6c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Naoray/laravel-factory-prefill)

**This repository has been archived! Use Shift's [Factory Generator](https://github.com/laravel-shift/factory-generator) to utilize the new class factories of Laravel 8.**

Factories are a great concept and I really love to use them for testing purposes, but it sucks to write every needed column name and associated faker methods by hand. This package aims to make the process less painful by providing a command to prefill your factories!

After creating a factory with the artisan cli you end up having something like this:

```
