add new public repo
This commit is contained in:
29
database/seeders/GitSeeder.php
Normal file
29
database/seeders/GitSeeder.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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,
|
||||
// ]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user