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