LaravelPackages.net
Acme Inc.
Toggle sidebar
njxqlus/filament-relation-manager-component

Use Filament Relation Manager Everywhere!

122.420
47
2.2.2
About njxqlus/filament-relation-manager-component

njxqlus/filament-relation-manager-component is a Laravel package for use filament relation manager everywhere!. It currently has 47 GitHub stars and 122.420 downloads on Packagist (latest version 2.2.2). Install it with composer require njxqlus/filament-relation-manager-component. Discover more Laravel packages by njxqlus or browse all Laravel packages to compare alternatives.

Last updated

Use Filament Relation Manager Everywhere!

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

banner

Use Filament Relation Manager Everywhere!

Installation

You can install the package via composer:

composer require njxqlus/filament-relation-manager-component

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-relation-manager-component-views"

Usage

Example below shows how to use different relation managers in tabs without lazy load.

public static function form(Schema $schema): Schema
{
    return $schema
        ->schema([
            Schemas\Components\Tabs::make()->tabs([
                Schemas\Components\Tabs\Tab::make('Versions')->schema([
                    \Njxqlus\Filament\Components\Forms\RelationManager::make()->manager(RelationManagers\VersionsRelationManager::class)->lazy(false)
                ]),
                Schemas\Components\Tabs\Tab::make('Stands')->schema([
                    \Njxqlus\Filament\Components\Forms\RelationManager::make()->manager(RelationManagers\StandsRelationManager::class)->lazy(false)
                ]),
                Schemas\Components\Tabs\Tab::make('Contexts')->schema([
                    \Njxqlus\Filament\Components\Forms\RelationManager::make()->manager(RelationManagers\ContextsRelationManager::class)->lazy(false)
                ]),
            ])
        ]);
}

public static function infolist(Schema $schema): Schema
{
    return $schema->schema([
        Schemas\Components\Tabs::make()->tabs([
            Schemas\Components\Tabs\Tab::make('Versions')->schema([
                \Njxqlus\Filament\Components\Infolists\RelationManager::make()->manager(RelationManagers\VersionsRelationManager::class)->lazy(false)
            ]),
            Schemas\Components\Tabs\Tab::make('Stands')->schema([
                \Njxqlus\Filament\Components\Infolists\RelationManager::make()->manager(RelationManagers\StandsRelationManager::class)->lazy(false)
            ]),
            Schemas\Infolists\Components\Tabs\Tab::make('Contexts')->schema([
                \Njxqlus\Filament\Components\Infolists\RelationManager::make()->manager(RelationManagers\ContextsRelationManager::class)->lazy(false)
            ]),
        ])
    ]);
}

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Comments