<?php

namespace Database\Factories;

use App\Models\Post;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;

class PostFactory extends Factory
{
    protected $model = Post::class;

    public function definition(): array
    {
        return [
            'title' => $this->faker->words(),
            'content' => $this->faker->word(),
            'location' => $this->faker->word(),
            'type' => 'blog',

            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now(),
        ];
    }
}