Creando proyecto

This commit is contained in:
Bryam Cesar
2025-08-12 23:57:57 -03:00
parent 4c90b4e3df
commit 44e1da9693
82 changed files with 13823 additions and 30 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace Database\Seeders;
use App\Models\Product;
use App\Models\User;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
// User::factory(10)->create();
User::factory()->create([
'name' => 'Test User',
'email' => 'test@example.com',
]);
Product::factory(50)->create();
}
}