role listing

This commit is contained in:
Saufi
2026-05-11 12:26:07 +08:00
parent 0b3705573c
commit a300eced76
11 changed files with 245 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace Database\Factories;
use App\Models\Role;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<Role>
*/
class RoleFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => fake()->unique()->word(),
'description' => fake()->sentence(),
];
}
}