mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 09:00:27 +00:00
update
This commit is contained in:
parent
a600030e07
commit
b11e16b72e
2 changed files with 3 additions and 4 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue