title: Laravel Eloquent get relation field
body: <p>I have a need to get a field from the relation from within the eloquent object.</p>
  
  <p>I am using datatables to pass the eloquent object across for viewing.</p>
  
  <p>I have an Model called Offices and a Model called Regions</p>
  
  <p>Offices
  id
  name
  region -> belongsto regions</p>
  
  <p>Regions
  id
  name</p>
  
  <p>I need to get something like this:
  Offices.id, Offices.name, Regions.name</p>
  
  <p>I have tried the below but that fails, how would I get the regions name in the get method?</p>
  
  <pre><code>$ReportData = Offices::with('region')-&gt;get(['id', 'name', 'region.name']);
  return datatables()-&gt;eloquent($ReportData)
  </code></pre>