12-05-2026 Frontend dev
This commit is contained in:
parent
405df0a122
commit
5b8bdf4182
779 changed files with 480564 additions and 6241 deletions
30
database/factories/ContactFactory.php
Normal file
30
database/factories/ContactFactory.php
Normal 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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue