<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(\Ignite\Core\Entities\Block::class, function (\Faker\Generator $faker) {
    $title = $faker->sentence;

    return [
        'name' => $title,
        'code' => snake_case($title),
        'locale' => 'en_US',
        'content' => '<p>' . $faker->paragraph . '</p>',
        'status' => 'active',
        'created_at' => $faker->date('Y-m-d H:i:s'),
        'updated_at' => $faker->date('Y-m-d H:i:s'),
        'published_at' => $faker->date('Y-m-d H:i:s'),
    ];
});
