39 lines
		
	
	
		
			1013 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1013 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Database\Seeders;
 | |
| 
 | |
| use App\Models\GitlabApp;
 | |
| use Illuminate\Database\Seeder;
 | |
| 
 | |
| class GitlabAppSeeder extends Seeder
 | |
| {
 | |
|     /**
 | |
|      * Run the database seeds.
 | |
|      */
 | |
|     public function run(): void
 | |
|     {
 | |
|         GitlabApp::create([
 | |
|             'id' => 1,
 | |
|             'name' => 'Public GitLab',
 | |
|             'api_url' => 'https://gitlab.com/api/v4',
 | |
|             'html_url' => 'https://gitlab.com',
 | |
|             'is_public' => true,
 | |
|             'team_id' => 0,
 | |
|         ]);
 | |
|         GitlabApp::create([
 | |
|             'id' => 2,
 | |
|             'name' => 'coolify-laravel-development-private-gitlab',
 | |
|             'api_url' => 'https://gitlab.com/api/v4',
 | |
|             'html_url' => 'https://gitlab.com',
 | |
|             'app_id' => 1234,
 | |
|             'app_secret' => '1234',
 | |
|             'oauth_id' => 1234,
 | |
|             'deploy_key_id' => '1234',
 | |
|             'public_key' => 'dfjasiourj',
 | |
|             'webhook_token' => '4u3928u4y392',
 | |
|             'private_key_id' => 2,
 | |
|             'team_id' => 0
 | |
|         ]);
 | |
|     }
 | |
| }
 | 
