Your IP : 216.73.216.130


Current Path : /home/forge/stage.sksb.smartcon-survey.com/database/factories/
Upload File :
Current File : /home/forge/stage.sksb.smartcon-survey.com/database/factories/ContactFactory.php

<?php

namespace Database\Factories;

use App\Models\Contact;
use Illuminate\Database\Eloquent\Factories\Factory;

class ContactFactory extends Factory
{
    protected $model = Contact::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'firstname' => $this->faker->firstName(),
            'lastname' => $this->faker->lastName(),
            'email' => $this->faker->safeEmail(),
            'phone' => $this->faker->phoneNumber(),
            'anrede' => rand(0, 1) == 1 ? 'Frau' : 'Herr',
            'birthday' => $this->faker->dateTimeBetween('1950-01-01', '2001-12-31'),
            'department_id' => 1,
        ];
    }
}