Páginas · TomatoPHP
🌉 Widgets
we built a widget Facade service to make it easy to register a widget to the dashboard home page from any provider, so you can use it on your package or on your AppServiceProvider as well.
Registering a widget
you can go to any service provider boot() method and register your widget like this:
php
and you will see the widget on the homepage of the dashboard directly.
Widget Component
you can use Widget as a component like this
html