public int $eventId; public function mount(): void { $this->eventId = (int) request()->route()->parameter('record'); } public function table(Table $table): Table { return $table ->query(Member::query() ->where('event_id', $this->eventId) )//...