njxqlus / filament-relation-manager-component
Use Filament Relation Manager Everywhere!
Fund package maintenance!
njxqlus
Installs: 20 220
Dependents: 0
Suggesters: 0
Security: 0
Stars: 25
Watchers: 3
Forks: 3
Open Issues: 1
Requires
- php: ^8.1
- filament/filament: ^3.0
- illuminate/contracts: ^10.0|^11.0
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
README
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(Form $form): Form { return $form ->schema([ Forms\Components\Tabs::make()->tabs([ Forms\Components\Tabs\Tab::make('Versions')->schema([ \Njxqlus\Filament\Components\Forms\RelationManager::make()->manager(RelationManagers\VersionsRelationManager::class)->lazy(false) ]), Forms\Components\Tabs\Tab::make('Stands')->schema([ \Njxqlus\Filament\Components\Forms\RelationManager::make()->manager(RelationManagers\StandsRelationManager::class)->lazy(false) ]), Forms\Components\Tabs\Tab::make('Contexts')->schema([ \Njxqlus\Filament\Components\Forms\RelationManager::make()->manager(RelationManagers\ContextsRelationManager::class)->lazy(false) ]), ]) ]); } public static function infolist(Infolist $infolist): Infolist { return $infolist->schema([ Infolists\Components\Tabs::make()->tabs([ Infolists\Components\Tabs\Tab::make('Versions')->schema([ \Njxqlus\Filament\Components\Infolists\RelationManager::make()->manager(RelationManagers\VersionsRelationManager::class)->lazy(false) ]), Infolists\Components\Tabs\Tab::make('Stands')->schema([ \Njxqlus\Filament\Components\Infolists\RelationManager::make()->manager(RelationManagers\StandsRelationManager::class)->lazy(false) ]), 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.