public function register()
 {
     $this->app->singleton('widget.manager', function () {
         return new WidgetManagerDatabase();
     });
     $this->app->alias('widget.manager', WidgetManager::class);
     $this->app['view']->addNamespace('snippets', snippets_path());
     $this->registerProviders([BladeServiceProvider::class, EventsServiceProvider::class]);
     $this->registerPermissions();
 }
 public function __construct()
 {
     return parent::__construct(snippets_path(), 'snippets');
 }