2021-10-30 16:29:59 -04:00
|
|
|
<?php
|
|
|
|
|
2023-05-24 04:06:15 -04:00
|
|
|
namespace Database\Factories\Users\Models;
|
2021-10-30 16:29:59 -04:00
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
class RoleFactory extends Factory
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The name of the factory's corresponding model.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2023-05-17 12:56:55 -04:00
|
|
|
protected $model = \BookStack\Users\Models\Role::class;
|
2021-10-30 16:29:59 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the model's default state.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function definition()
|
|
|
|
{
|
|
|
|
return [
|
2022-06-08 13:00:30 -04:00
|
|
|
'display_name' => $this->faker->sentence(3),
|
|
|
|
'description' => $this->faker->sentence(10),
|
2022-05-04 16:03:13 -04:00
|
|
|
'external_auth_id' => '',
|
2021-10-30 16:29:59 -04:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|