title: Laravel 5. How to use 'sometimes' validation rule in requests?
body: <p>I am using Post***Request.php that is located in App\Http\Requests folder. I have a form and I want the city fields only if my user enters his country Pakistan. Otherwise these fields can be blank.</p>
  
  <pre><code>    $city1Rule = 'required_without_all:city1,city2,city3|different:city2|different:city3|in:'.implode (",", $cities);
  
      $city2Rule = 'required_without_all:city1,city2,city3|different:city1|different:city3|in:'.implode (",", $cities);
  
      $city3Rule = 'required_without_all:city1,city2,city3|different:city2|different:city1|in:'.implode (",", $cities);
  
      return [
          'country' =&gt; 
          'city1' =&gt; $city1Rule,
          'city2' =&gt; $city2Rule,
          'city3' =&gt; $city3Rule,
          'other_rules' =&gt; 'other_rules',         
          ];
  </code></pre>
  
  <p>I want this work only in this file. How can I modify it?</p>