original_string: public function deleteById($id)
      {
          $read = NotificationsStackRead::where([
                      'stack_id' => $id,
                      'user_id'  => user()->id
                  ])->first();
          if (!is_null($read)) {
              return $read->delete();
          }
          return false;
      }
code: public function deleteById($id)
      {
          $read = NotificationsStackRead::where([
                      'stack_id' => $id,
                      'user_id'  => user()->id
                  ])->first();
          if (!is_null($read)) {
              return $read->delete();
          }
          return false;
      }
code_tokens: public function deleteById ( $ id ) { $ read = NotificationsStackRead :: where ( [ 'stack_id' => $ id , 'user_id' => user ( ) -> id ] ) -> first ( ) ; if ( ! is_null ( $ read ) ) { return $ read -> delete ( ) ; } return false ; }
docstring: Deletes item by id
  
  @param mixed $id
  @return boolean
docstring_tokens: Deletes item by id