mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 02:11:36 +00:00
38 lines
981 B
PHP
38 lines
981 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\SourceControl;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class SourceControlsSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
SourceControl::factory()->create([
|
|
'profile' => 'GitHub',
|
|
'provider' => \App\Enums\SourceControl::GITHUB,
|
|
'provider_data' => [
|
|
'token' => 'github_token',
|
|
],
|
|
]);
|
|
|
|
SourceControl::factory()->create([
|
|
'profile' => 'GitLab',
|
|
'provider' => \App\Enums\SourceControl::GITLAB,
|
|
'provider_data' => [
|
|
'token' => 'gitlab_token',
|
|
],
|
|
]);
|
|
|
|
SourceControl::factory()->create([
|
|
'profile' => 'Bitbucket',
|
|
'provider' => \App\Enums\SourceControl::BITBUCKET,
|
|
'provider_data' => [
|
|
'username' => 'bitbucket_username',
|
|
'password' => 'bitbucket_password',
|
|
],
|
|
]);
|
|
}
|
|
}
|