You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
583 B
PHP
25 lines
583 B
PHP
<?php
|
|
|
|
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;
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'dect' => $this->faker->optional()->numberBetween(1000, 9999),
|
|
'email' => $this->faker->unique()->optional()->safeEmail(),
|
|
'mobile' => $this->faker->optional(.2)->phoneNumber(),
|
|
];
|
|
}
|
|
}
|