original_string: protected function getModel($request, $model)
      {
          if ($this->isClassName($model)) {
              return trim($model);
          } else {
              return $request->route($model, null) ?:
                  ((preg_match("/^['\"](.*)['\"]$/", trim($model), $matches)) ? $matches[1] : null);
          }
      }
code: protected function getModel($request, $model)
      {
          if ($this->isClassName($model)) {
              return trim($model);
          } else {
              return $request->route($model, null) ?:
                  ((preg_match("/^['\"](.*)['\"]$/", trim($model), $matches)) ? $matches[1] : null);
          }
      }
code_tokens: protected function getModel ( $ request , $ model ) { if ( $ this -> isClassName ( $ model ) ) { return trim ( $ model ) ; } else { return $ request -> route ( $ model , null ) ? : ( ( preg_match ( "/^['\"](.*)['\"]$/" , trim ( $ model ) , $ matches ) ) ? $ matches [ 1 ] : null ) ; } }
docstring: Get the model to authorize.
  
  @param  \Illuminate\Http\Request  $request
  @param  string  $model
  @return \Illuminate\Database\Eloquent\Model|string
docstring_tokens: Get the model to authorize .