title: Getting the class(name) of a related model (Laravel 4, Eloquent) without retrieving an instance
body: <pre><code>$relationFunctionName = 'bananas';    //this is set dynamically at runtime, and is always a relation function
  $currentClass         = 'FruitBowl'; //this is set dynamically at runtime, and is always an Eloquent Model
  $rowId                = 1; //this is also set dynamically at runtime
  
  $grabber              = new $currentClass();
  $item                 = $grabber-&gt;with($relationFunctionName)-&gt;find($rowId);
  $relatedItem          = $item-&gt;{$relationFunctionName};
  
  exit( get_class( $relatedItem ) );
  // returns the className of the related item (if there is one) returns the current class if there is none
  </code></pre>
  
  <p>I also looked into "getRelations()" which returns an array with the relational functionNames as keys filled with the related items or NULL if there are none.</p>
  
  <p>I could also do with creating a new instance of the relation, so that I can retrieve the className of it and not save it.</p>
  
  <p>To be clear I want the className of the object that is returned by the relational function. So in this example it would probably be Banana.</p>