<?php

namespace Eminiarts\Aura\Database\Factories;

use Eminiarts\Aura\Resources\Permission;
use Illuminate\Database\Eloquent\Factories\Factory;

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

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'title' => $name = $this->faker->name(),
            'name' => str($name)->slug(),
            'content' => $this->faker->paragraph(),
            'type' => 'Permission',
            'user_id' => 1,
            'parent_id' => null,
            'order' => null,
            
        ];
    }
}
