2023-04-19 10:42:15 +00:00
|
|
|
<?php
|
|
|
|
|
2023-04-25 09:01:56 +00:00
|
|
|
namespace App\Http\Livewire\Project\Application;
|
2023-04-19 10:42:15 +00:00
|
|
|
|
|
|
|
use App\Models\Application;
|
|
|
|
use Livewire\Component;
|
|
|
|
|
|
|
|
class Source extends Component
|
|
|
|
{
|
|
|
|
public $applicationId;
|
|
|
|
public Application $application;
|
|
|
|
|
|
|
|
protected $rules = [
|
|
|
|
'application.git_repository' => 'required',
|
|
|
|
'application.git_branch' => 'required',
|
|
|
|
'application.git_commit_sha' => 'nullable',
|
|
|
|
];
|
|
|
|
public function mount()
|
|
|
|
{
|
|
|
|
$this->application = Application::find($this->applicationId)->first();
|
|
|
|
}
|
|
|
|
}
|