Download the PHP package gheith3/filament-relation-pages without Composer
On this page you can find all versions of the php package gheith3/filament-relation-pages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gheith3/filament-relation-pages
More information about gheith3/filament-relation-pages
Files in gheith3/filament-relation-pages
Package filament-relation-pages
Short Description A Filament plugin to add custom free-form pages as tabs alongside Relation Managers
License MIT
Homepage https://github.com/gheith3/filament-relation-pages
Informations about the package filament-relation-pages
Filament Relation Pages
Add fully custom, free-form tabs alongside your Relation Managers in any Filament resource — no forced table, no forced relationship. Use Filament schema components, plain HTML, Alpine.js, or anything you like.
Requirements
| Package | Version |
|---|---|
| PHP | ^8.2 |
| Laravel | ^12.0 | ^13.0 |
| Filament | ^4.0 | ^5.0 |
Installation
The service provider is auto-discovered by Laravel — no manual registration needed.
Usage
1 — Generate a Relation Page
This creates two files:
2 — Add Content to the Class
Open the generated PHP class and add your content:
3 — Register in the Resource
That's it. The tab appears in the tab bar alongside your relation managers.
Blade View
The generated Blade view has two rendering modes:
Both modes can be mixed in the same view.
Available Features
Tab customisation
Dynamic badge (from a query)
Override getBadge() to compute the badge at runtime:
Hide the tab conditionally
Lazy loading
Set $isLazy = true to defer rendering the tab content until the tab is first visited, exactly like Filament's own RelationManager:
Multiple schemas in one page
You can define multiple schema methods — each becomes independently renderable in Blade:
Pass extra Livewire data
Artisan Command Reference
Customising Stubs
Publish the stubs to your project to customise the generated templates:
Stubs are published to stubs/filament-relation-pages/.
How It Works
Filament calls three static methods on every entry in getRelations():
| Method | Purpose |
|---|---|
canViewForRecord() |
Should the tab be visible for this record? |
getTabComponent() |
Returns the Tab with label / icon / badge |
getDefaultProperties() |
Extra Livewire props merged on mount |
isLazy() |
Whether to lazy-load the tab content |
Then Filament mounts the class as a Livewire component, injecting ownerRecord and pageClass automatically. RelationPage implements HasSchemas + HasActions — the same stack Filament's own RelationManager uses — so all Filament form and infolist components work out of the box.
Changelog
See CHANGELOG.md.
Contributing
See CONTRIBUTING.md.
Security
See SECURITY.md.
License
MIT — see LICENSE.md.
Author
All versions of filament-relation-pages with dependencies
filament/filament Version ^4.0|^5.0
illuminate/contracts Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0