BookStack/database/factories/Users/Models/RoleFactory.php

30 lines
618 B
PHP
Raw Normal View History

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