mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 09:51:37 +00:00
30 lines
789 B
PHP
30 lines
789 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\GitHook;
|
|
use App\Models\Site;
|
|
use App\Models\SourceControl;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
class GitHookFactory extends Factory
|
|
{
|
|
protected $model = GitHook::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'secret' => $this->faker->word(),
|
|
'events' => $this->faker->words(),
|
|
'actions' => $this->faker->words(),
|
|
'hook_id' => $this->faker->word(),
|
|
'hook_response' => $this->faker->words(),
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
'site_id' => Site::factory(),
|
|
'source_control_id' => SourceControl::factory(),
|
|
];
|
|
}
|
|
}
|