/factory/{product_number}/{info_number}
- First it shows the output of
Tests\Factories\ProductFactory::create(); - Then it shows the output of
Product::with('info')->get(); -
- fix the issue of products data generate twice amount of the ProductFactory.
/refresh
- .env
- app/Models/*
- config/database.php
- config/factories-reloaded.php
- database/factories/*
- database/migrations/*
- database/sqlites/*
- resources/views/factory.blade.php
- routes/web.php
- tests/Factories/*
Laravel 7.20.0
sqlite
- files store in the
/database/sqlitesfolder
- use it to generate
/database/factories/ProductFactories.phpfrom/database/migrations/create_products_table.php - with a modified generator PR #17
- command ex:
php artisan make:populated-factory Models\\Product
- use it to generate
/tests/Factories/ProductFactory.phpfrom/database/factories/ProductFactories.php - command:
php artisan make:factory-reloaded