code: public function update(User $user, DatabaseNotification $notification)
      {
          if ($user->hasPermissionTo(Permission::NOTIFICATION_UPDATE_ALL)) {
              return true;
          }
  
          return $user->id === $notification->notifiable_id;
      }
docs: Determine whether the user can update the user.
  
  @param  \Unite\UnisysApi\Models\User  $user
  @param  \Illuminate\Notifications\DatabaseNotification  $notification
  @return mixed