]> BookStack Code Mirror - bookstack/blob - database/factories/Actions/WebhookFactory.php
Aligned notification capitalisation
[bookstack] / database / factories / Actions / WebhookFactory.php
1 <?php
2
3 namespace Database\Factories\Actions;
4
5 use BookStack\Actions\Webhook;
6 use Illuminate\Database\Eloquent\Factories\Factory;
7
8 class WebhookFactory extends Factory
9 {
10
11     protected $model = Webhook::class;
12
13     /**
14      * Define the model's default state.
15      *
16      * @return array
17      */
18     public function definition()
19     {
20         return [
21             'name' => 'My webhook for ' . $this->faker->country(),
22             'endpoint' => $this->faker->url,
23             'active' => true,
24         ];
25     }
26 }