title: How to prevent insert email if already exist with specific id in laravel?
body: <p>I have table in which i'm trying to store email addresses. These email addresses will be save with <code>user_id</code>.</p>
  
  <p>For example in <code>email_list</code> table</p>
  
  <pre><code>|ID | user_id | email          |
  ...............................
  | 1 | 101     | john@gmail.com |
  ...............................
  | 2 | 102     | john@gmail.com |
  </code></pre>
  
  <p>In above table you can see same email addresses save with different <code>user_id</code>, that's it what i'm trying to do. </p>
  
  <p>Currently i'm trying simple laravel validation like this.</p>
  
  <pre><code>'email' =&gt; 'required|unique:email_list|email',
  </code></pre>
  
  <p>So is there any way to check already exist email addresses if row has same <code>user_id</code>? I'm using laravel 5.2. I would like to appreciate if someone guide me. Thank you</p>
  
  <p><strong>Edited After 3 Hours</strong></p>
  
  <p>I also add same question in the github as <a href="https://github.com/laravel/framework/issues/15518" rel="nofollow">issue</a>. A person is saying that i have to create own validation rule.</p>