This commit is contained in:
Bozhidar 2024-05-13 12:36:28 +03:00
parent 094812064b
commit 06ede145c2
2 changed files with 22 additions and 0 deletions

View file

@ -55,6 +55,7 @@ class MinecraftServerResource extends Resource
//
])
->actions([
Tables\Actions\ViewAction::make(),
Tables\Actions\EditAction::make(),
])
->bulkActions([
@ -77,6 +78,7 @@ class MinecraftServerResource extends Resource
'index' => Pages\ListMinecraftServers::route('/'),
'create' => Pages\CreateMinecraftServer::route('/create'),
'edit' => Pages\EditMinecraftServer::route('/{record}/edit'),
'view' => Pages\ViewMinecraftServer::route('/{record}'),
];
}
}

View file

@ -0,0 +1,20 @@
<?php
namespace Modules\Minecraft\App\Filament\Resources\MinecraftServerResource\Pages;
use Filament\Resources\Pages\ViewRecord;
use Modules\Minecraft\App\Filament\Resources\MinecraftServerResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
class ViewMinecraftServer extends ViewRecord
{
protected static string $resource = MinecraftServerResource::class;
protected function getHeaderActions(): array
{
return [
];
}
}