Example of HasManyThrough in LaraBug/larabug-app

File app/Models/Project.php (link to Github)
use Illuminate\Database\Eloquent\Model;

class Project extends Model
{
    //
    public function feedback()
    {
        return $this->hasManyThrough(Feedback::class, Exception::class);
    }
    //
}

Additional resources on HasManyThrough: