2021-10-30 16:29:59 -04: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-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
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|