original_string: protected function resolveResourceKey(Model $model, string $resourceKey = null):string
      {
          if (! is_null($resourceKey)) {
              return $resourceKey;
          }
  
          if (method_exists($model, 'getResourceKey')) {
              return $model->getResourceKey();
          }
  
          return $model->getTable();
      }
code: protected function resolveResourceKey(Model $model, string $resourceKey = null):string
      {
          if (! is_null($resourceKey)) {
              return $resourceKey;
          }
  
          if (method_exists($model, 'getResourceKey')) {
              return $model->getResourceKey();
          }
  
          return $model->getTable();
      }
code_tokens: protected function resolveResourceKey ( Model $ model , string $ resourceKey = null ) : string { if ( ! is_null ( $ resourceKey ) ) { return $ resourceKey ; } if ( method_exists ( $ model , 'getResourceKey' ) ) { return $ model -> getResourceKey ( ) ; } return $ model -> getTable ( ) ; }
docstring: Resolve the resource key from the model.
  
  @param  \Illuminate\Database\Eloquent\Model $model
  @param  string|null                         $resourceKey
  @return string
docstring_tokens: Resolve the resource key from the model .