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:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
How to customize the Filament panel configuration for Lunar.
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();
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();