lasthourcloud/app/Http/Livewire/Project/Application/Source.php
2023-04-25 14:43:35 +02:00

23 lines
520 B
PHP

<?php
namespace App\Http\Livewire\Project\Application;
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::where('id', $this->applicationId)->first();
}
}