<?php

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

use App\Models\EventLanguage;
use Faker\Generator as Faker;

$factory->define(EventLanguage::class, function (Faker $faker) {
    $title = $faker->realText(10);
    $date = $faker->dayOfMonth() . ' ' . substr($faker->monthName(), 0, 3) . ' ' . $faker->year();
    $location = $faker->cityPrefix() . ' ' . $faker->citySuffix() . ', ' . $faker->stateAbbr() . ', ' . $faker->country();
    $link = (object)[
        'url'        => $faker->url(),
        'label'      => 'This is indifferent',
        'objectId'   => null,
        'isExternal' => true,
    ];
    return [
        'title'       => $title,
        'block_title' => $title,
        'small_title' => $faker->text(10),
        'info'        => $faker->text(20),
        'sub_title'   => $date,
        'location'    => $location,
        'link'        => $link,
    ];
});
