mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 04:06:51 +01:00 
			
		
		
		
	 1900c04b71
			
		
	
	
		1900c04b71
		
			
		
	
	
	
	
		
			
			Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com> Co-authored-by: Boy132 <Boy132@users.noreply.github.com> Co-authored-by: Lance Pioch <git@lance.sh>
		
			
				
	
	
		
			29 lines
		
	
	
		
			582 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			582 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Filament\App\Resources\Servers;
 | |
| 
 | |
| use App\Filament\App\Resources\Servers\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('/'),
 | |
|         ];
 | |
|     }
 | |
| }
 |