title: Laravel: Get images by id article
body: <p>I need get images by id article. In other words, In dashboard i have show title articles, after click on article display content article. Everything is fine except show images.</p>
  
  <p>I have 3 tables in database:
  Users - here I have users id and name etc.
  Articles - here I have content articles (title, main content, date, etc.)
  Images - here I have save images for each article (column: id, image_id, image)</p>
  
  <p>..next I have models Articles, Images, Users
  in articles i have:</p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Auth\UserTrait;
  use Illuminate\Auth\UserInterface;
  use Illuminate\Auth\Reminders\RemindableTrait;
  use Illuminate\Auth\Reminders\RemindableInterface;
  
  class Articles extends Eloquent implements UserInterface, RemindableInterface {
      use UserTrait, RemindableTrait;
  
      protected $table = 'articles';
  
      public $fillable = array(
          'id',
          'user_id',
          'subject'
      );
  
      public function user() {
          return $this-&gt;belongs_to('User');
      }
  
      public function itemsArticle() {
          return $this-&gt;hasMany('Image', 'id');
      }
  }
  </code></pre>
  
  <p>in image i have:</p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Auth\UserTrait;
  use Illuminate\Auth\UserInterface;
  use Illuminate\Auth\Reminders\RemindableTrait;
  use Illuminate\Auth\Reminders\RemindableInterface;
  
  class Image extends Eloquent implements UserInterface, RemindableInterface {
      use UserTrait, RemindableTrait;
  
      protected $table = 'image';
  
      public $fillable = array(
          'id',
          'image_id',
          'image',
      );
  
      public function apps() {
          return $this-&gt;belongs_to('User', 'id');
      }
  }
  </code></pre>
  
  <p>and my controller:</p>
  
  <pre><code>$images = $this-&gt;data-&gt;itemsApp(); // here is maybe problem with show images from model Image
  $articles = Articles::find($id);
  return View::make('users.articles')
   -&gt;with('images', $images)
   -&gt;with('articles', $articles )
  </code></pre>
  
  <p>In view.blade I use foreach and if result is show only content article without images.
  Thanks for advice.</p>