Page class is the foundation for creating custom pages in Filament panels. Pages can include forms, widgets, actions, and custom content, and can be organized within navigation groups and clusters.
Namespace
Inheritance
Extends:Filament\Pages\BasePage
Implements: HasActions, HasRenderHookScopes, HasSchemas
Type Parameters
TConfiguration- The page configuration class (extendsPageConfiguration)
Static Methods
getUrl()
Generate a URL to this page.Additional route parameters.
Whether to generate an absolute URL.
The panel ID. Defaults to the current panel.
The tenant model for multi-tenancy.
Whether to guess missing route parameters.
The configuration key.
Returns the generated URL.
registerRoutes()
Register the routes for this page.The panel instance.
Optional page configuration.
registerNavigationItems()
Register navigation items for this page.getNavigationItems()
Get the navigation items for this page.Returns an array of navigation items.
getRouteName()
Get the route name for this page.The panel instance. Defaults to the current panel.
Returns the route name.
getNavigationLabel()
Get the navigation label for this page.Returns the navigation label.
getNavigationIcon()
Get the navigation icon for this page.Returns the icon identifier.
getNavigationGroup()
Get the navigation group for this page.Returns the navigation group name.
getNavigationSort()
Get the navigation sort order for this page.Returns the sort order.
getNavigationBadge()
Get the navigation badge for this page.Returns the badge content.
getNavigationBadgeColor()
Get the navigation badge color.Returns the badge color.
shouldRegisterNavigation()
Check if this page should register navigation items.Returns
true if navigation should be registered.isDiscovered()
Check if this page should be automatically discovered.Returns
true if the page should be discovered.getCluster()
Get the cluster this page belongs to.Returns the cluster class name or
null.Instance Methods
getLayout()
Get the layout view for this page.Returns the layout view name.
getBreadcrumbs()
Get the breadcrumbs for this page.Returns an array of breadcrumb labels.
getFooter()
Get the footer view for this page.Returns the footer view or
null.getHeader()
Get the header view for this page.Returns the header view or
null.content()
Define the content schema for this page.The schema instance to configure.
Returns the configured schema.
getHeaderWidgets()
Get the widgets to display in the page header.Returns an array of widget configurations.
getFooterWidgets()
Get the widgets to display in the page footer.Returns an array of widget configurations.
getHeaderWidgetsColumns()
Get the column configuration for header widgets.Returns the number of columns or responsive column configuration.
getFooterWidgetsColumns()
Get the column configuration for footer widgets.Returns the number of columns or responsive column configuration.
getWidgetData()
Get data to pass to page widgets.Returns an array of data to pass to widgets.
Properties
$cluster
$navigationGroup
$navigationIcon
$navigationLabel
$navigationSort
$shouldRegisterNavigation
Traits
CanAuthorizeAccess- Authorization checksHasErrorNotifications- Error notification handlingHasRoutes- Route managementHasSubNavigation- Sub-navigation supportInteractsWithHeaderActions- Header action management