This commit is contained in:
Bozhidar 2024-09-11 15:51:42 +03:00
parent a600030e07
commit b11e16b72e
2 changed files with 3 additions and 4 deletions

View file

@ -54,8 +54,7 @@ class CloneGitRepository extends Page
->label('SSH Key')
->options(\App\Models\GitSshKey::all()->pluck('name', 'id'))
->columnSpanFull()
->live()
->required(),
->live(),
TextInput::make('url')
->label('URL')
@ -165,7 +164,7 @@ class CloneGitRepository extends Page
$newGitRepository->dir = $this->state['dir'];
$newGitRepository->clone_from = $this->state['clone_from'];
$newGitRepository->domain_id = $this->state['domain_id'];
$newGitRepository->git_ssh_key_id = $this->state['git_ssh_key_id'];
$newGitRepository->git_ssh_key_id = (int) $this->state['git_ssh_key_id'];
$newGitRepository->status = GitRepository::STATUS_PENDING;
$newGitRepository->save();

View file

@ -29,7 +29,7 @@ return new class extends Migration
$table->string('dir')->nullable();
$table->unsignedBigInteger('domain_id');
$table->unsignedBigInteger('git_ssh_key_id');
$table->unsignedBigInteger('git_ssh_key_id')->nullable();
$table->timestamps();
});