18 lines
379 B
PHP
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');
|
|
}
|
|
}
|