presseportale/database/factories/ContactFactory.php
Kevin Adametz 5b8bdf4182
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run
12-05-2026 Frontend dev
2026-05-12 18:32:33 +02:00

30 lines
826 B
PHP

<?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(),
];
}
}