<?php

namespace Database\Factories;

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

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\EmbedVideo>
 */
class EmbedVideoFactory extends Factory
{
    protected $model = EmbedVideo::class;

    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition()
    {
        return [
            'body' => $this->faker->paragraph,
            'header' => $this->faker->sentence,
            'layout' => 'full',
            'fill' => true,
            'show_text' => true,
            'text_style' => 'blue',
            'number' => $this->faker->numberBetween(1,100),
        ];
    }

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