original_string: protected function getModelByKey(Model $model, $key)
      {
          return $model::withoutGlobalScopes()
              ->where($model->getKeyName(), $key)
              ->first();
      }
code: protected function getModelByKey(Model $model, $key)
      {
          return $model::withoutGlobalScopes()
              ->where($model->getKeyName(), $key)
              ->first();
      }
code_tokens: protected function getModelByKey ( Model $ model , $ key ) { return $ model :: withoutGlobalScopes ( ) -> where ( $ model -> getKeyName ( ) , $ key ) -> first ( ) ; }
docstring: Returns model instance by key.
  
  @param Model $model
  @param mixed $key
  @return Model|null
docstring_tokens: Returns model instance by key .