components([ // ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('id')->searchable(), TextColumn::make('user.username') ->label(__('label.username')) ->formatStateUsing(fn ($record) => username_for_admin($record->user_id)), TextColumn::make('client.name') ->label(__('oauth.client')), TextColumn::make('expires_at') ->label(__('label.expire_at')) ]) ->filters([ // ]) ->recordActions([ // Tables\Actions\EditAction::make(), DeleteAction::make(), ]) ->toolbarActions([ DeleteBulkAction::make(), ]); } public static function getPages(): array { return [ 'index' => ManageAccessTokens::route('/'), ]; } }