public static function bootHasWidgets()
    {
        static::created(function (Model $widgetableModel) {
            if ($widgetableModel->queuedWidgets) {
                $widgetableModel->attachWidgets($widgetableModel->queuedWidgets);
                $widgetableModel->queuedWidgets = [];
            }
        });

        static::deleted(function (Model $widgetableModel) {
            $widgetableModel->syncWidgets(null);
        });
    }