Skip to main content
The Filament panel can be customized when registering it in a service provider. The LunarPanel::panel() method provides direct access to the panel instance for configuration. For example, the following changes the panel’s URL to /admin instead of the default /lunar:
use Lunar\Admin\Support\Facades\LunarPanel;

LunarPanel::panel(fn ($panel) => $panel->path('admin'))
    ->extensions([
        // ...
    ])
    ->register();

Adding to the Panel

The Filament panel supports adding new screens as Pages or Resources, as well as other customizations such as Livewire components, plugins, and navigation groups.
use Lunar\Admin\Support\Facades\LunarPanel;

LunarPanel::panel(function ($panel) {
    return $panel
        ->pages([
            // Register standalone Filament Pages
            SalesReport::class,
            RevenueReport::class,
        ])
        ->resources([
            // Register new Filament Resources
            OpeningTimeResource::class,
            BannerResource::class,
        ])
        ->livewireComponents([
            // Register Livewire components
            OrdersSalesChart::class,
        ])->plugin(
            // Register a Filament plugin
            new ShippingPlugin(),
        )
        ->navigationGroups([
            // Set the navigation groups
            'Catalog',
            'Sales',
            'CMS',
            'Reports',
            'Shipping',
            'Settings',
        ]);
})->register();
For further information, consult the Filament documentation.