mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-26 08:06:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			862 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			862 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Filament\Resources;
 | |
| 
 | |
| use App\Filament\Resources\MountResource\Pages;
 | |
| use App\Models\Mount;
 | |
| use Filament\Resources\Resource;
 | |
| 
 | |
| class MountResource extends Resource
 | |
| {
 | |
|     protected static ?string $model = Mount::class;
 | |
| 
 | |
|     protected static ?string $navigationIcon = 'tabler-layers-linked';
 | |
|     protected static ?string $navigationGroup = 'Advanced';
 | |
| 
 | |
|     public static function getNavigationBadge(): ?string
 | |
|     {
 | |
|         return static::getModel()::count() ?: null;
 | |
|     }
 | |
| 
 | |
|     public static function getRelations(): array
 | |
|     {
 | |
|         return [
 | |
|             //
 | |
|         ];
 | |
|     }
 | |
| 
 | |
|     public static function getPages(): array
 | |
|     {
 | |
|         return [
 | |
|             'index' => Pages\ListMounts::route('/'),
 | |
|             'create' => Pages\CreateMount::route('/create'),
 | |
|             'edit' => Pages\EditMount::route('/{record}/edit'),
 | |
|         ];
 | |
|     }
 | |
| }
 | 
