laravel muti lavel association
<p>I have 3 tables and these table are not according laravel </p>

<pre><code>job_post Table
  job_post_id
  name

job_functional_area Table (has many with job_post table and belongsTo with functional_area) 
  job_functional_area_id
  job_post_id
  functional_area_id

functional_area
  functional_area_id
  name
</code></pre>

<p>now I want to fetch job_post functional area</p>

<p>Relation like this job_post > job_functional_area > functional_area</p>

<p>In cakephp we use contain in laravel i don't have an idea. </p>

<p>I have try Has Many Through but it will not work in this condition. Please help me </p>

<p>Models</p>

<pre><code>class JobPost extends Model
{
     protected $table = 'job_post';
     protected $primaryKey = 'job_post_id';

}

class JobFunctionalArea extends Model {
     protected $table = 'job_functional_area';
     protected $primaryKey = 'job_functional_area_id';  
}


class FunctionalArea extends Model {
     protected $table = 'functional_area';
     protected $primaryKey = 'functional_area_id';  
}
</code></pre>