Laravel validation with custom condition
<p>I'm trying to setup validation rule with condition but have no idea how to do following:</p>

<p>In my form I have title_url (array for multiple language versions). I want to have unique title_url but only when module_cat_id in the form has same value as existing rows in DB.</p>

<p>This is my rule:</p>

<pre><code>'title_url.*'   =&gt; 'required|min:3|unique:modules_cat_lang,title_url'
</code></pre>

<p>Any ideas how to solve this?</p>