title: Octobercms/Laravel get id based on relation
body: <p>In Octobercms I have a list of Shows (Primary). They have a hasMany relation to Seasons and Seasons belong to the show. Then i have episodes that belong to the season (season hasMany episodes)</p>
  <p>In the picture below what I want to do is get the season that belongs to the show, not every season created which is what is showing below. Does anyone with laravel or octobercms knowledge know how i could implement this?</p>
  <p>The way octobercms works is that it populates the dropdown by relations or manually via the model. Im doing it by relations:</p>
  <pre><code>    public $hasMany = [
          'episodes' =&gt; ['Teranode\Anime\Models\AnimeEpisode', 'key' =&gt; 'season_id'],
      ]; 
  </code></pre>
  <p>These two links would help but not what im trying to get:
  <a href="http://octobercms.com/docs/database/relations" rel="nofollow noreferrer">http://octobercms.com/docs/database/relations</a><br />
  <a href="http://octobercms.com/docs/backend/relations" rel="nofollow noreferrer">http://octobercms.com/docs/backend/relations</a></p>
  <p><a href="https://i.stack.imgur.com/nGVo9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nGVo9.png" alt="" /></a></p>