mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-13 19:42:30 +03:00
.github
app
bootstrap
database
factories
Activity
Models
CommentFactory.php
TagFactory.php
WebhookFactory.php
WebhookTrackedEventFactory.php
Api
Entities
Exports
Sorting
Uploads
Users
migrations
seeders
.gitignore
dev
lang
public
resources
routes
storage
tests
themes
.env.example
.env.example.complete
.gitattributes
.gitignore
LICENSE
artisan
bookstack-system-cli
composer.json
composer.lock
crowdin.yml
docker-compose.yml
eslint.config.mjs
jest.config.ts
package-lock.json
package.json
phpcs.xml
phpstan.neon.dist
phpunit.xml
readme.md
tsconfig.json
version
27 lines
564 B
PHP
27 lines
564 B
PHP
<?php
|
|
|
|
namespace Database\Factories\Activity\Models;
|
|
|
|
use BookStack\Activity\Models\Webhook;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class WebhookFactory extends Factory
|
|
{
|
|
protected $model = Webhook::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'name' => 'My webhook for ' . $this->faker->country(),
|
|
'endpoint' => $this->faker->url(),
|
|
'active' => true,
|
|
'timeout' => 3,
|
|
];
|
|
}
|
|
}
|