]> BookStack Code Mirror - bookstack/blob - database/factories/Actions/WebhookFactory.php
662f64f8bc90a5856f1b9c3ec2ffd4ba700ad70a
[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     protected $model = Webhook::class;
11
12     /**
13      * Define the model's default state.
14      *
15      * @return array
16      */
17     public function definition()
18     {
19         return [
20             'name'     => 'My webhook for ' . $this->faker->country(),
21             'endpoint' => $this->faker->url,
22             'active'   => true,
23             'timeout'  => 3,
24         ];
25     }
26 }