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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-relation-pages

Filament Relation Pages

Latest Version on Packagist Total Downloads Tests

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

Gheith


All versions of filament-relation-pages with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^4.0|^5.0
illuminate/contracts Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gheith3/filament-relation-pages contains the following files

Loading the files please wait ...