lasthourcloud/app/Http/Livewire/Project/Application/Deployments.php

26 lines
553 B
PHP
Raw Normal View History

2023-05-24 12:26:50 +00:00
<?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();
}
}