Custom page with parameter (independent from resource)
hi guys, im trying to create a custom global page that can take a record id from url for me to process, i dont want it to be bound with a resource since its independent page
also im working with multitenant, this is my current code
class DetailTeamScore extends Page implements HasTable{ use InteractsWithTable; // ✅ Enables table functionality protected static ?string $navigationIcon = 'heroicon-o-clipboard-document-check'; protected static string $view = 'filament.pages.scoreboard.detail-team-score'; protected static ?string $slug = '/scoreboard/detail-team-score/{record}'; protected static bool $shouldRegisterNavigation = true; public Team $record; public function mount(int | string $record): void { $this->record = Team::findOrFail($record); // ✅ direct model fetch }
class DetailTeamScore extends Page implements HasTable{ use InteractsWithTable; // ✅ Enables table functionality protected static ?string $navigationIcon = 'heroicon-o-clipboard-document-check'; protected static string $view = 'filament.pages.scoreboard.detail-team-score'; protected static ?string $slug = '/scoreboard/detail-team-score/{record}'; protected static bool $shouldRegisterNavigation = true; public Team $record; public function mount(int | string $record): void { $this->record = Team::findOrFail($record); // ✅ direct model fetch }