<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\TrainingRequest;
use Faker\Generator as Faker;

$factory->define(TrainingRequest::class, function (Faker $faker) {
    return [
        'purpose_training_id' => $faker->randomElement(\App\PurposeTraining::pluck('id')->toArray()),
        'user_id' => $faker->randomElement(\App\User::where('role', 'user')->pluck('id')->toArray()),
        'name' => $faker->name('male'),
        'email' => $faker->unique()->safeEmail,
        'phone' => $faker->e164PhoneNumber,
        'university' => $faker->text(20),
        'graduation_date' => $faker->date('Y-m-d'),
        'birth_date' => $faker->date('Y-m-d'),
        'cv' => 'assets/admin/images/icons/files.png',
        'certifications' => [
            'assets/admin/images/icons/files.png',
            'assets/admin/images/icons/files.png',
            'assets/admin/images/icons/files.png',
        ],
    ];
});
