bagisto/laravel-datafaker
Generate realistic fake data for Bagisto 2.3 during development: create customers, categories, and products (Simple, Virtual, Downloadable, Configurable). Install via Composer and run the bagisto:fake Artisan command to seed records.
Start by installing the package via Composer and ensuring you’re running Bagisto v2.3.x (this package is tightly version-locked to Bagisto). Run the setup commands (config:cache, queue:batches-table, migrate), then use the bundled Artisan command php artisan bagisto:fake to interactively seed fake customers, categories, and products (Simple, Virtual, Downloadable, Configurable). The simplest first use case: generate 10 customers and 5 products for a local dev database to test checkout flows or catalog pages.
Developers typically use this package in two main ways:
bagisto:fake and select options (e.g., “Create 20 Simple products”) to populate test data quickly.FakeDataGeneratorJob. Integrate into DatabaseSeeder by calling the fake generator programmatically if you prefer deterministic test data per environment (e.g., always seed v2.3.0 fixtures). Ideal for staging environments or automated CI seeding before test suites.composer.json’s require before updating.php artisan db:wipe or clear products, customers, categories, and related tables before reseeding—or hook into Laravel’s Database::beforeStopping() to reset cleanly.failed_jobs. Check the job payload for attribute code mismatches—the package resolves attribute IDs dynamically by code, and custom attributes missing in the DB will break seeding.How can I help you explore Laravel packages today?