Uploading content

This commit is contained in:
David
2025-03-12 00:41:31 -04:00
parent b192e57eb5
commit f70ef52f9e
108 changed files with 13255 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace Database\Seeders;
use App\Models\Product;
use Illuminate\Database\Seeder;
class ProductSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$batchSize = 5000; // Ajusta este valor si es necesario
$totalRecords = 300000;
for ($i = 0; $i < $totalRecords / $batchSize; $i++) {
Product::factory($batchSize)->create();
}
}
}