original_string: public function markNotificationAsRead($notification_id)
      {
          $notification = $this->notifications()
              ->where('id', $notification_id)
              ->whereNull('read_at');
  
          if ($notification->exists()) {
              $notification->first()->markAsRead();
          }
      }
code: public function markNotificationAsRead($notification_id)
      {
          $notification = $this->notifications()
              ->where('id', $notification_id)
              ->whereNull('read_at');
  
          if ($notification->exists()) {
              $notification->first()->markAsRead();
          }
      }
code_tokens: public function markNotificationAsRead ( $ notification_id ) { $ notification = $ this -> notifications ( ) -> where ( 'id' , $ notification_id ) -> whereNull ( 'read_at' ) ; if ( $ notification -> exists ( ) ) { $ notification -> first ( ) -> markAsRead ( ) ; } }
docstring: Marks the given notification as read.
  
  @param  int $notification_id
  
  @return void
docstring_tokens: Marks the given notification as read .