mirror of
https://github.com/pelican-dev/panel.git
synced 2025-06-26 17:21:07 +02:00
29 lines
581 B
PHP
29 lines
581 B
PHP
<?php
|
|
|
|
namespace App\Filament\App\Resources;
|
|
|
|
use App\Filament\App\Resources\ServerResource\Pages\ListServers;
|
|
use App\Models\Server;
|
|
use Filament\Resources\Resource;
|
|
|
|
class ServerResource extends Resource
|
|
{
|
|
protected static ?string $model = Server::class;
|
|
|
|
protected static ?string $slug = '/';
|
|
|
|
protected static bool $shouldRegisterNavigation = false;
|
|
|
|
public static function canAccess(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListServers::route('/'),
|
|
];
|
|
}
|
|
}
|