ns-dashboard-widgets
This filter helps to interact with the stacked widgets on the WidgetsService class. It's a great fit to use this filter to inject new widgets or modify existing ones.
<?php
namespace Module\YourModule\Providers;
use Modules\YourModule\Widgets\YourWidget;
class ServiceProvider
{
public function register()
{
Hook::filter( 'ns-dashboard-wigets', function( $widgets ) {
$widgets[] = YourWidget::class;
return $widgets;
});
}
}