/**
  * Boot package
  * 
  * @return void
  */
 public function boot()
 {
     $this->loadPublic();
     $this->loadView();
     $this->loadTranslation();
     $this->loadConfiguration();
     $this->registerBroadcastTopicHandler();
     $this->app['authis']->intercept('notification.admin.notifications.mark-as-viewed.put', function ($user, $ability, $resource) {
         return $resource->isBelongsTo($user);
     });
     $events = $this->app['Inoplate\\Foundation\\App\\Services\\Events\\Dispatcher'];
     Notification::Observe(new ModelObservers\NotificationObserver($events));
     view()->composer('inoplate-notification::notifications.navbar', 'Inoplate\\Notification\\Http\\ViewComposers\\NotificationViewComposer');
 }
 /**
  * Count data
  *
  * @param  string $userId
  * @return integer
  */
 public function count($userId)
 {
     return $this->model->where('user_id', $userId)->count();
 }