This commit is contained in:
Bozhidar 2024-04-25 12:15:21 +03:00
parent 779d2a0402
commit e10d5491bb
2 changed files with 22 additions and 2 deletions

View file

@ -92,8 +92,8 @@ class DomainIsCreatedListener
$install->setLanguage($installationLanguage); $install->setLanguage($installationLanguage);
// $install->setStandaloneInstallation(); $install->setStandaloneInstallation();
$install->setSymlinkInstallation(); //$install->setSymlinkInstallation();
if ($databasesAreCreated) { if ($databasesAreCreated) {
$install->setDatabaseDriver('mysql'); $install->setDatabaseDriver('mysql');

View file

@ -4,10 +4,14 @@ namespace App\Filament\Resources\BackupResource\Pages;
use App\Filament\Resources\BackupResource; use App\Filament\Resources\BackupResource;
use Filament\Actions; use Filament\Actions;
use Filament\Pages\Concerns\ExposesTableToWidgets;
use Filament\Resources\Components\Tab;
use Filament\Resources\Pages\ListRecords; use Filament\Resources\Pages\ListRecords;
class ListBackups extends ListRecords class ListBackups extends ListRecords
{ {
use ExposesTableToWidgets;
protected static string $resource = BackupResource::class; protected static string $resource = BackupResource::class;
protected function getHeaderActions(): array protected function getHeaderActions(): array
@ -16,4 +20,20 @@ class ListBackups extends ListRecords
Actions\CreateAction::make(), Actions\CreateAction::make(),
]; ];
} }
protected function getActions(): array
{
return [
Actions\CreateAction::make(),
];
}
public function getTabs(): array
{
return [
null => Tab::make('All'),
'completed' => Tab::make()->query(fn ($query) => $query->where('status', 'completed')),
];
}
} }