PHP code example of rectitude-open / filament-people
1. Go to this page and download the library: Download rectitude-open/filament-people library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rectitude-open / filament-people example snippets
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,
];
namespace App\Providers\Filament;
use RectitudeOpen\FilamentPeople\FilamentPeoplePlugin;
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
FilamentPeoplePlugin::make()
]);
}
}
bash
php artisan vendor:publish --tag="filament-people-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="filament-people-config"
bash
php artisan vendor:publish --tag="filament-people-translations"