2021-06-29 00:27:57 +02:00
|
|
|
<?php
|
|
|
|
|
2023-02-03 20:41:59 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-06-29 00:27:57 +02:00
|
|
|
namespace Database\Factories\Engelsystem\Models\User;
|
|
|
|
|
|
|
|
use Engelsystem\Models\User\Contact;
|
2023-10-24 23:00:04 +02:00
|
|
|
use Engelsystem\Models\User\User;
|
2021-06-29 00:27:57 +02:00
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
class ContactFactory extends Factory
|
|
|
|
{
|
|
|
|
/** @var string */
|
2022-12-15 19:50:56 +01:00
|
|
|
protected $model = Contact::class; // phpcs:ignore
|
2021-06-29 00:27:57 +02:00
|
|
|
|
2022-12-14 19:15:20 +01:00
|
|
|
public function definition(): array
|
2021-06-29 00:27:57 +02:00
|
|
|
{
|
|
|
|
return [
|
2023-10-24 23:00:04 +02:00
|
|
|
'user_id' => User::factory(),
|
2021-06-29 00:27:57 +02:00
|
|
|
'dect' => $this->faker->optional()->numberBetween(1000, 9999),
|
|
|
|
'email' => $this->faker->unique()->optional()->safeEmail(),
|
|
|
|
'mobile' => $this->faker->optional(.2)->phoneNumber(),
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|