title: Laravel, related model reuturened names
body: <p>I have a model that has a related model</p>
  
  <pre><code>class A extends Model{
  
  public function niceName()
      {
          return this-&gt;hasOne('App\NiceName2' ...);
      }
  </code></pre>
  
  <p>In the controller when I retrieve data with submodel the result is like </p>
  
  <p>a[nice_name_2] (using the table name) and I would like it to be a[NiceName2]. </p>
  
  <p>Is there a way to have an alias for the returned result? In cakePHP i know there is propertyName to set this on relations. Laravel has a similar feature?</p>
  
  <p>Thanks</p>