Resource Page outside filament

I have a filament resource and there, there is the 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.
3 Replies
toeknee
toeknee14h ago
Just manually register it? Or use a custom flament page which renders that pages blade?
bernhard
bernhardOP12h ago
What do you mean with "manually" register it? In routes/web.php? And is it possible, to render a filament page completly free, I mean without header, sidebar, footer, etc?
Dan Harrin
Dan Harrin10h ago
Why is it a Filament page at that point, you can register a controller outside Filament but still have the route look like it is part of Filament

Did you find this page helpful?