<?php

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

use App\OtherRequest;
use Faker\Generator as Faker;

$factory->define(OtherRequest::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->sentence(2),
        'other_request_topic_id' => $faker->randomElement(\App\OtherRequestTopic::pluck('id')->toArray()),
        'details' => $faker->text(100),
        'requests' => $faker->text(100),
        'files' => [
            'assets/admin/images/icons/files.png',
            'assets/admin/images/icons/google.pdf',
            'assets/admin/images/icons/files.png',
        ],
    ];
});
