title: Laravel: use Eloquent belongsto , get data from both tables?
body: <p>In Controller, I would like to pass the only one variable with specifies column from parent in it. Now,I'm using </p>
  
  <pre><code>View::make('store.product')-&gt;with('products', Product::find($id)
  -&gt;join('design','product.design_id','=','design.id')
  -&gt;join('user','design.user_id','=','user.id')
  -&gt;select('user.name','design.title','product.price')
  -&gt;get();
  </code></pre>
  
  <p>My question is</p>
  
  <p>1.Is there a better way to do this by using Belongsto? </p>
  
  <p>2.If can do, Is it work the same with Hasmany? </p>
  
  <p>This is my table structure.</p>
  
  <p><strong>User</strong></p>
  
  <pre><code>id | name
  1  | 'John'
  </code></pre>
  
  <p><strong>Design</strong></p>
  
  <pre><code>id | user_id |  title
  1  |    1    | 'Chill'  
  2  |    1    |  'Mad'
  </code></pre>
  
  <p><strong>Product</strong></p>
  
  <pre><code>id | design_id | price
  1  |     1     |  20  
  2  |     1     |  30
  </code></pre>
  
  <p>And Model be like this</p>
  
  <p><strong>Product</strong> belongsto <strong>Design</strong> ,
  <strong>Design</strong>  belongsto <strong>User</strong></p>