hasManyThrough('Criterion', 'Objective')->orderBy('name'); } /** * Return the objectives that the outcome belongs to * * @return Illuminate\Database\Eloquent\Model */ public function objectives() { return $this->hasMany('Objective'); // return $this->belongsToMany('Objective', 'objective_outcome'); } }