- Crowd Types + Persons CRUD (73 tests) - Festival Sections + Time Slots + Shifts CRUD met assign/claim flow (84 tests) - Invite Flow + Member Management met InvitationService (109 tests) - Schema v1.6 migraties volledig uitgevoerd - DevSeeder bijgewerkt met crowd types voor testorganisatie
27 lines
743 B
PHP
27 lines
743 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Company;
|
|
use App\Models\Organisation;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/** @extends Factory<Company> */
|
|
final class CompanyFactory extends Factory
|
|
{
|
|
/** @return array<string, mixed> */
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'organisation_id' => Organisation::factory(),
|
|
'name' => fake('nl_NL')->company(),
|
|
'type' => fake()->randomElement(['supplier', 'partner', 'agency', 'venue', 'other']),
|
|
'contact_name' => fake('nl_NL')->name(),
|
|
'contact_email' => fake()->companyEmail(),
|
|
'contact_phone' => fake('nl_NL')->phoneNumber(),
|
|
];
|
|
}
|
|
}
|