mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 22:16:15 +00:00
demo (#392)
This commit is contained in:
37
database/seeders/SourceControlsSeeder.php
Normal file
37
database/seeders/SourceControlsSeeder.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?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',
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user