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