34 lines
767 B
PHP
Raw Normal View History

2024-09-03 14:38:34 -07:00
<?php
namespace Database\Seeders;
2024-09-03 15:15:57 -07:00
use App\Models\Contact;
use App\Models\Customer;
use App\Models\PackingSlip;
use App\Models\ShippingEntry;
2024-09-03 14:38:34 -07:00
use App\Models\User;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
2024-09-03 15:15:57 -07:00
use Database\Factories\ShippingEntryFactory;
use http\Client;
2024-09-03 14:38:34 -07:00
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
2024-09-03 15:15:57 -07:00
Customer::factory(10)
->has(Contact::factory(5))
->has(PackingSlip::factory(30))
->has(ShippingEntry::factory(2))
->create();
2024-09-03 14:38:34 -07:00
User::factory()->create([
'name' => 'Test User',
'email' => 'test@example.com',
]);
}
}