12-05-2026 Frontend dev
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run

This commit is contained in:
Kevin Adametz 2026-05-12 18:32:33 +02:00
parent 405df0a122
commit 5b8bdf4182
779 changed files with 480564 additions and 6241 deletions

View file

@ -0,0 +1,30 @@
<?php
namespace Database\Factories;
use App\Enums\Portal;
use App\Models\Company;
use App\Models\Contact;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<Contact>
*/
class ContactFactory extends Factory
{
protected $model = Contact::class;
public function definition(): array
{
return [
'company_id' => Company::factory(),
'portal' => fake()->randomElement([Portal::Presseecho->value, Portal::Businessportal24->value]),
'salutation_key' => fake()->randomElement(['mr', 'mrs', null]),
'first_name' => fake()->firstName(),
'last_name' => fake()->lastName(),
'responsibility' => fake()->jobTitle(),
'phone' => fake()->phoneNumber(),
'email' => fake()->email(),
];
}
}