title: How best can i link product_id to images so the one product can have multiple images linked
body: <p>Iam working on eCommerce website. i have products which iam uploading fine with 1 display image. i want to have multiple images uploaded separetly in a different table but linked by product_id to identify images belonging to this product </p>
  
  <p>here is my database schema</p>
  
  <pre><code>    Schema::create('product_images', function (Blueprint $table) {
          $table-&gt;increments('id');
          $table-&gt;integer('product_id');
          $table-&gt;string('name');
          $table-&gt;string('size');
          $table-&gt;timestamps();
  
          $table-&gt;foreign('product_id')
                -&gt;references('id')-&gt;on('products')
                -&gt;onDelete('cascade');
      });
  </code></pre>
  
  <p>with this iam able to upload images fine but when i check my database, there is no foreign key linking to products captured when uploading these images</p>