]> BookStack Code Mirror - bookstack/blob - database/factories/Auth/RoleFactory.php
Laravel 8 shift squash & merge (#3029)
[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         ];
27     }
28 }