Dashboard magic. How is my new custom widget being added to my dashboard?

I created a custom empty dashboard and created a widget. It showed up on my dashboard. How? I did NOT add anything to my new Dashboard.php page. What magic is going on here?
4 Replies
Tim van Heugten
Tim van Heugten5mo ago
On the panel provider there is a configuration that auto discovers widgets for the dashboard. Not sure, but it could be enabled by default.
awcodes
awcodes5mo ago
auto discovered widgets will automatically be placed on the dashboard. if that is not the behavior you want you will need to move the widget class to a different directory and register it manually on the dashboard.
thedangler
thedangler5mo ago
widgets are auto discovered automatically they would have to. I took pout all the default widgets from the provider and my blank widget showed up.
awcodes
awcodes5mo ago
When you run the create widget command it will create the widget in the auto discovery directory. Therefore it will be included in the dashboard by default. What I said is still relevant.