coolify/app/Http/Livewire/Project/Application/Deployments.php
Andras Bacsai 6e7ee0ca48 a ton 👷‍♂️
2023-05-24 14:26:50 +02:00

26 lines
553 B
PHP

<?php
namespace App\Http\Livewire\Project\Application;
use App\Models\Application;
use Livewire\Component;
class Deployments extends Component
{
public int $application_id;
public $deployments = [];
public string $current_url;
public function mount()
{
$this->current_url = url()->current();
}
public function reloadDeployments()
{
$this->loadDeployments();
}
public function loadDeployments()
{
$this->deployments = Application::find($this->application_id)->deployments();
}
}