ercogx/factory-generator-for-laravel

A library that automatically fills the definition() method in the factory based on DB columns

1.0.1 2024-09-20 13:29 UTC

This package is auto-updated.

Last update: 2025-02-20 23:09:24 UTC


README

This library automatically fills the definition() method in the factory based on DB columns

The library is unlikely to generate all the fields for your model. The entities are very different, you will most likely have to edit some fields manually. It is just an attempt to simplify the routine process. I will be glad for additions to FakerMapper

Install

composer require --dev ercogx/factory-generator-for-laravel

Usage

php artisan make:generate-factory User

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

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