<?php

namespace Database\Factories;

use App\Models\LivestreamList;
use Illuminate\Database\Eloquent\Factories\Factory;

class LivestreamListFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = LivestreamList::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'header' => $this->faker->sentence(),
            'show_past' => true,
            'show_future' => true,
        ];
    }

    public function search()
    {
        return $this->state(function (array $attributes) {
            return [
                'header' => $this->faker->sentence(),
            ];
        });
    }
}
