<?php

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

use App\CompanyRequest;
use Faker\Generator as Faker;

$factory->define(CompanyRequest::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,
        'company_request_topic_id' => $faker->randomElement(\App\CompanyRequestTopic::pluck('id')->toArray()),
        'request_type' => $faker->sentence(2),
        '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',
        ],
    ];
});
