Open sergeynilov opened 4 months ago
To display on the dashboard and resource edit page you need to create two widgets.
First one to resource and register it on two files:
Now to display a widget on the dashboard, you need to create a new one and leave the resource option empty in the prompt, this will create a new widget in app/Filament/Widgets/ folder and display it on dashboard.
If the widgets shares code, use extends or traits.
Thanks!
I have installed "webbingbrasil/filament-maps": "3.x-dev" into laravel 10 / filamentphp 3 app and during installation I selected next options :
INFO Filament widget [app/Filament/Resources/BranchResource/Widgets/BranchesMapWidget.php] created successfully.
INFO Make sure to register the widget in
BranchResource::getWidgets()
, and then again ingetHeaderWidgets()
orgetFooterWidgets()
of anyBranchResource
page.Do not know if "Custom" type of widget is valid here ?
I expected to see widget under admin dashboard, asI selected [admin] panel.
I do not see maps also in BranchResource edit page.
I need maps both in BranchResource edit page and under admin dashboard with different set of points...
I looked some issues on the site and my widget is :
also in my resources I try :
Looks like I miscall the element... How correct ?