original_string: protected function checkForDeleted(Builder $query)
      {
          if (request()->has('deleted') && request()->input('deleted') === '1')
              $query = $query->onlyTrashed();
  
          return $query;
      }
code: protected function checkForDeleted(Builder $query)
      {
          if (request()->has('deleted') && request()->input('deleted') === '1')
              $query = $query->onlyTrashed();
  
          return $query;
      }
code_tokens: protected function checkForDeleted ( Builder $ query ) { if ( request ( ) -> has ( 'deleted' ) && request ( ) -> input ( 'deleted' ) === '1' ) $ query = $ query -> onlyTrashed ( ) ; return $ query ; }
docstring: Check for deleted records option
  
  @param Builder $query
  @return mixed
docstring_tokens: Check for deleted records option