2025-09-01 15:06:58 +02:00

32 lines
650 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
class RoleFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = \Vanguard\Role::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'name' => Str::random(5),
'display_name' => implode(" ", $this->faker->words(2)),
'description' => $this->faker->sentence,
'removable' => true,
];
}
}