© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•10mo ago•
5 replies
bernhard

Resource Page outside filament

I have a filament resource and there, there is the
getPages
getPages
method, which registers the routes for the resource:

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


Is there a way, to add none "Filament" pages as well, for example to a regular Controller?

I wanna add a "preview" route for it:

public static function getPages(): array
{
    return [
        ...
        'preview' => ????,
    ];
}
public static function getPages(): array
{
    return [
        ...
        'preview' => ????,
    ];
}


For now, I added it as a classical route.
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

page outside resource
FilamentFFilament / ❓┊help
3y ago
Filament Resource only edit page?
FilamentFFilament / ❓┊help
2y ago
Using filament styles outside of the resource
FilamentFFilament / ❓┊help
14mo ago
Filament Notifications outside Filament
FilamentFFilament / ❓┊help
3y ago