title: How to map Eloquent with other tables?
body: <p>This is the first time when i use ORM, so i wondering if it is possible to map it to other tables...</p>
  
  <p>For example i have currently logged user. It is connected to the <code>POSTS</code> table through links table. For example if i want to select posts i do sql like this:</p>
  
  <pre><code>SELECT
      `posts`.`id`', `posts`.`Name`, `posts`.`Description`
  FROM
      `links`,
      `posts`
  WHERE
      `links`.`user_id` = 1 AND `links`.`post_id` = `posts`.`id`
  </code></pre>
  
  <p>How to extend Eloquent that if i request <code>Posts::all()</code> it would return posts only for current user...</p>