engelsystem/db/factories/User/ContactFactory.php

24 lines
595 B
PHP
Raw Normal View History

2021-06-29 00:27:57 +02:00
<?php
declare(strict_types=1);
2021-06-29 00:27:57 +02:00
namespace Database\Factories\Engelsystem\Models\User;
use Engelsystem\Models\User\Contact;
use Illuminate\Database\Eloquent\Factories\Factory;
class ContactFactory extends Factory
{
/** @var string */
protected $model = Contact::class; // phpcs:ignore
2021-06-29 00:27:57 +02:00
public function definition(): array
2021-06-29 00:27:57 +02:00
{
return [
'dect' => $this->faker->optional()->numberBetween(1000, 9999),
'email' => $this->faker->unique()->optional()->safeEmail(),
'mobile' => $this->faker->optional(.2)->phoneNumber(),
];
}
}