butschster/entity-faker
Generate fake PHP entities and persist them via your ORM using a simple factory. Define per-class attribute generators with Faker, support inheritance via raw attributes, and create single or multiple entities using Laminas hydrators/entity factories.
Full Changelog: https://github.com/butschster/entity-faker/compare/v0.9.1...v2.0.0
// For a single entity
$path = $factory->of(SuperUser::class)->times(1000)->export('path/to/store');
// path/to/store/SuperUser.php
// For all defined entities
$patches = $factory->export('path/to/store', 1000);
//[
// User::class => path/to/store/User.php,
// SuperUser::class => path/to/store/SuperUser.php,
//];
Fix problems with callbacks
How can I help you explore Laravel packages today?