]> BookStack Code Mirror - bookstack/blob - database/factories/Auth/RoleFactory.php
6ab3d710e96f8e61f32288f12dba915f5e26f6a8
[bookstack] / database / factories / Auth / RoleFactory.php
1 <?php
2
3 namespace Database\Factories\Auth;
4
5 use Illuminate\Database\Eloquent\Factories\Factory;
6
7 class RoleFactory extends Factory
8 {
9     /**
10      * The name of the factory's corresponding model.
11      *
12      * @var string
13      */
14     protected $model = \BookStack\Auth\Role::class;
15
16     /**
17      * Define the model's default state.
18      *
19      * @return array
20      */
21     public function definition()
22     {
23         return [
24             'display_name'     => $this->faker->sentence(3),
25             'description'      => $this->faker->sentence(10),
26             'external_auth_id' => '',
27         ];
28     }
29 }