<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

class ContentFilterFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'header' => $this->faker->sentence($this->faker->numberBetween(1, 5)),
            'body' => $this->faker->paragraph,
            'style' => 'gray',
            'multiple' => true,
            'title' => $this->faker->randomNumber(2),
            'subtitle' => $this->faker->word,
        ];
    }

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