StudentKnowledgeGraphPage.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace App\Filament\Pages;
  3. use BackedEnum;
  4. use UnitEnum;
  5. use Filament\Pages\Page;
  6. use App\Livewire\StudentKnowledgeGraph;
  7. class StudentKnowledgeGraphPage extends Page
  8. {
  9. protected static BackedEnum | string | null $navigationIcon = 'heroicon-o-chart-bar';
  10. protected static ?string $navigationLabel = '学生知识图谱';
  11. protected static UnitEnum | string | null $navigationGroup = '学习分析';
  12. protected static ?int $navigationSort = 2;
  13. protected string $view = 'filament.pages.student-knowledge-graph-page';
  14. public function mount(): void
  15. {
  16. // Page 类不需要 authorizeResourceAccess
  17. }
  18. public function getBreadcrumbs(): array
  19. {
  20. return [
  21. '学生知识图谱',
  22. ];
  23. }
  24. protected function getHeaderWidgets(): array
  25. {
  26. return [
  27. // 可以在这里添加额外的header widgets
  28. ];
  29. }
  30. protected function getFooterWidgets(): array
  31. {
  32. return [
  33. // 可以在这里添加额外的footer widgets
  34. ];
  35. }
  36. }