30 lines
659 B
PHP
30 lines
659 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Git;
|
|
use App\Models\PrivateKey;
|
|
use App\Models\Project;
|
|
use App\Models\Team;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class GitSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
// $project = Project::find(1);
|
|
// $private_key_1 = PrivateKey::find(1);
|
|
|
|
// Git::create([
|
|
// 'api_url' => 'https://api.github.com',
|
|
// 'html_url' => 'https://github.com',
|
|
// 'is_public' => false,
|
|
// 'private_key_id' => $private_key_1->id,
|
|
// 'project_id' => $project->id,
|
|
// ]);
|
|
}
|
|
}
|