KnowledgeRelationManagement.php 736 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Filament\Pages;
  3. use App\Services\KnowledgeGraphService;
  4. use Filament\Pages\Page;
  5. class KnowledgeRelationManagement extends Page
  6. {
  7. protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-link';
  8. protected static string|\UnitEnum|null $navigationGroup = '资源';
  9. protected static ?int $navigationSort = 4;
  10. protected static ?string $navigationLabel = '关联关系管理';
  11. protected static ?string $title = '关联关系管理';
  12. protected string $view = 'filament.pages.knowledge-relation-management';
  13. public array $relations = [];
  14. public function mount(KnowledgeGraphService $service): void
  15. {
  16. $this->relations = $service->listRelations(1, 1000);
  17. }
  18. }