lasthourcloud/app/Http/Livewire/Project/Database/BackupExecutions.php
2023-08-10 15:52:54 +02:00

18 lines
379 B
PHP

<?php
namespace App\Http\Livewire\Project\Database;
use Livewire\Component;
class BackupExecutions extends Component
{
public $backup;
public $executions;
protected $listeners = ['refreshBackupExecutions'];
public function refreshBackupExecutions(): void
{
$this->executions = collect($this->backup->executions)->sortByDesc('created_at');
}
}