<?php

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

use App\CaseRequest;
use Faker\Generator as Faker;

$factory->define(CaseRequest::class, function (Faker $faker) {
    return [
        'user_id' => $faker->randomElement(\App\User::where('role', 'user')->pluck('id')->toArray()),
        'name' => $faker->name('male'),
        'email' => $faker->unique()->safeEmail,
        'phone' => $faker->e164PhoneNumber,
        'request_type' => $faker->randomElement(['case_study', 'case_study_attending']),
        'subject' => $faker->text(30),
        'details' => $faker->text(100),
        'requests' => $faker->text(100),
        'files' => [
            'assets/admin/images/icons/files.png',
            'assets/admin/images/icons/files.png',
            'assets/admin/images/icons/files.png',
        ],
    ];
});
