title: How to validate selection in Laravel Request
body: <p>I am building an app to create Football (Soccer) matches. When I create a match, I need to check that the selected teams are in the chosen league.</p>
  <p>When the form is submitted I would like to display a message that the wrong league selected if so.</p>
  <p>There is <code>store()</code> method in controller</p>
  <pre class="lang-php prettyprint-override"><code>$match = new Match;
  $match-&gt;round = $request-&gt;round;
  $match-&gt;league_id = $request-&gt;league;
  $match-&gt;home_team_id = $request-&gt;home_team;
  $match-&gt;away_team_id = $request-&gt;away_team;
  $match-&gt;match_date = $request-&gt;match_date;
  $match-&gt;location = $request-&gt;location;
  </code></pre>
  <p>Team model:</p>
  <pre class="lang-php prettyprint-override"><code>class Team extends Model
  {
      public function league() {
          return $this-&gt;belongsTo('App\League');
      }
  }
  </code></pre>
  <p>League model:</p>
  <pre class="lang-php prettyprint-override"><code>class League extends Model
  {
      public function teams() {
          return $this-&gt;hasMany('App\Team');
      }
  }
  </code></pre>