lasthourcloud/app/Http/Livewire/PollDeployment.php
Andras Bacsai d947175e4b wip
2023-04-19 12:42:15 +02:00

20 lines
504 B
PHP

<?php
namespace App\Http\Livewire;
use Livewire\Component;
use Spatie\Activitylog\Models\Activity;
class PollDeployment extends Component
{
public string $deployment_uuid;
public string $created_at;
public string $status;
public function polling()
{
$activity = Activity::where('properties->deployment_uuid', '=', $this->deployment_uuid)->first();
$this->created_at = $activity->created_at;
$this->status = data_get($activity, 'properties.status');
}
}