rectitude-open / filament-people
A Filament plugin for managing member profiles.
Requires
- php: ^8.1
- awcodes/filament-curator: ^3.7
- codewithdennis/filament-select-tree: ^3.1
- cviebrock/eloquent-sluggable: ^10.0 || ^11.0 || ^12.0
- filament/filament: ^3.0
- mansoor/filament-versionable: ^0.0.13
- ralphjsmit/laravel-filament-seo: ^1.5
- solution-forest/filament-tree: ^2.1
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- larastan/larastan: ^2.0
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.1
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
README
Filament People
Filament People is a Filament plugin that adds a member management section to your Filament admin panel. It allows you to easily manage and display information about people, such as their name, title, biography, and avatar. This package is ideal for organizations, companies, or teams that need to manage member information in the admin panel.
Note: This plugin relies on several excellent Laravel/Filament plugins. Before installing Filament People, you must ensure that all the following dependencies are installed and properly configured in your project. Filament Tree, Filament Select Tree, Eloquent Sluggable, Filament Versionable, Filament SEO, Filament Curator
This package is also a standalone part of a CMS project: FilaPress.
Resource | Page | Cluster | Migration | Model | Config | View | Localization |
---|---|---|---|---|---|---|---|
✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ |
Installation
You can install the package via composer:
composer require rectitude-open/filament-people
You can publish and run the migrations with:
php artisan vendor:publish --tag="filament-people-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="filament-people-config"
Optionally, you can publish the translations using
php artisan vendor:publish --tag="filament-people-translations"
This is the contents of the published config file:
return [ 'cluster' => [ 'navigation_sort' => 0, 'navigation_icon' => 'heroicon-o-identification', ], 'person' => [ 'navigation_sort' => 0, 'navigation_icon' => 'heroicon-o-identification', 'datetime_format' => 'Y-m-d H:i:s', 'navigation_badge' => false, 'model' => \RectitudeOpen\FilamentPeople\Models\Person::class, 'filament_resource' => \RectitudeOpen\FilamentPeople\Filament\Resources\PersonResource::class, ], 'person_category' => [ 'model' => \RectitudeOpen\FilamentPeople\Models\PersonCategory::class, 'page' => \RectitudeOpen\FilamentPeople\Filament\Pages\PersonCategory::class, 'navigation_sort' => 2, 'navigation_icon' => 'heroicon-o-rectangle-stack', ], 'editor_component_class' => \Filament\Forms\Components\RichEditor::class, ];
Usage
The package provides a resource page that allows you to manage People in your Filament admin panel.
To use the resource page provided by this package, you need to register it in your Panel Provider first.
namespace App\Providers\Filament; use RectitudeOpen\FilamentPeople\FilamentPeoplePlugin; class AdminPanelProvider extends PanelProvider { public function panel(Panel $panel): Panel { return $panel ->plugins([ FilamentPeoplePlugin::make() ]); } }
Testing
composer test
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.