© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
leoblanski

Edit page as Index resource page

I have a resource that I want users to only edit. It doesn't make sense to show an index page with a list of resources. Therefore, I would like the "Tenant" menu, for example, to directly open the edit page with the form to make changes.

I could not set the Pages with the ID because I have no information about session at this point.

Normal resource:
public static function getPages(): array
    {
        return [
            'index' => Pages\ListTeams::route('/'),
            'create' => Pages\CreateTeam::route('/create'),
            'edit' => Pages\EditTeam::route('/{record}/edit'),
        ];
    }
public static function getPages(): array
    {
        return [
            'index' => Pages\ListTeams::route('/'),
            'create' => Pages\CreateTeam::route('/create'),
            'edit' => Pages\EditTeam::route('/{record}/edit'),
        ];
    }


I want to do something like:

    public static function getPages(): array
    {
        return [
            'index' => Pages\EditTeam::route('/{record}/edit'),
        ];
    }
    public static function getPages(): array
    {
        return [
            'index' => Pages\EditTeam::route('/{record}/edit'),
        ];
    }


I've attempted to use custom pages that extend from Page and fill on mount function, but it returns errors.

Missing required parameter for [Route: filament.user.resources.teams.index] [URI: teams/{record}/edit] [Missing parameter: record].
Missing required parameter for [Route: filament.user.resources.teams.index] [URI: teams/{record}/edit] [Missing parameter: record].


It's because when Panel is mounted, doesn't have information about which ID Tenant will edit.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Edit resource page as the page index
FilamentFFilament / ❓┊help
3y ago
Form in resource index page
FilamentFFilament / ❓┊help
2y ago
Filament Resource only edit page?
FilamentFFilament / ❓┊help
2y ago
Table on resource edit page?
FilamentFFilament / ❓┊help
3y ago