Laravel Api response issue

I am new to Laravel and Api development.

I have a query like

$data = /App/Model/ScenarioType::select('*', 'txt_tutor as txt')->with(['selectionType', 'scenarios'=>function($query) {$query->select('*', 'txt_tutor as txt');}, 'scenarios.scenarioAnswers'=>function($query)
  {
    $query->select('*', 'answer_type_tutor as answer_type');
  }, 'scenarios.groupType'])->where('id', $id)->get();

Secnario model

class Scenario extends Model
{
    protected $table = 'scenarios';
    protected $fillable = ['scenario_type', 'scenario_id', 'group', 'txt', 'txt_tutor'];

    public function scenarioType()
    {
        return $this->belongsTo('App/Model/ScenarioType', 'scenario_type', 'id');
    }

    public function scenarioAnswers()
    {
        return $this->hasMany('App/Model/ScenarioAnswer', 'scenario_type');
        //return $this->hasMany('App/Model/ScenarioAnswer', 'scenario_type');
    }

    public function groupType()
    {
        return $this->belongsTo('App/Model/GroupType','group','id');
    }
}

SecnarioType model

class ScenarioType extends Model
{
  protected $table = 'scenario_types';

  protected $fillable = ['txt', 'txt_tutor', 'selection_type'];

    public function scenarios()
    {
      return $this->hasMany('App/Model/Scenario', 'scenario_type');
    }

    public function selectionType()
    {
        return $this->belongsTo('App/Model/SelectionType', 'selection_type');
    }

}

Moreover, I have added DB::enableQueryLog(); adnd print the quarries

dd(DB::getQueryLog());

Total 5 queries has displayed

select *, `txt_tutor` as `txt` from `scenario_types` where `id` = 2;
select * from `selection_types` where `selection_types`.`id` in (2);
select *, `txt_tutor` as `txt` from `scenarios` where `scenarios`.`scenario_type` in (2);
select *, `answer_type_tutor` as `answer_type` from `scenario_answers` where `scenario_answers`.`scenario_type` in (2,3,4,5,6,7,8,9,10);
select * from `group_types` where `group_types`.`id` in (1);

Now, moving towards the response what the API response should be ..

{
    "data": [
        {
            "id": 2,
            "txt": "interests",
            "txt_tutor": "interests",
            "selection_type": {
                "id": 2,
                "txt": "select all that apply",
                "created_at": "2017-08-15 06:03:55",
                "updated_at": "2017-08-15 06:03:55"
            },
            "created_at": "2017-08-15 06:03:55",
            "updated_at": "2017-08-15 06:03:55",
            "scenarios": [
                {
                    "id": 2,
                    "scenario_type": 2,
                    "scenario_id": 1,
                    "group": 1,
                    "txt": "How do you express your inner artist? (select all that apply)",
                    "txt_tutor": "How do you express your inner artist? (select all that apply)",
                    "created_at": "2017-08-15 06:03:55",
                    "updated_at": "2017-08-15 06:03:55",
                    "scenario_answers": [
                        {
                            "id": 6,
                            "txt": "Drawing or painting",
                            "answer_type": 2,
                            "answer_type_tutor": 2,
                            "scenario_id": 1,
                            "scenario_type": 2,
                            "created_at": "2017-08-15 06:03:56",
                            "updated_at": "2017-08-15 06:03:56"
                        },
                        {
                            "id": 7,
                            "txt": "Selfies",
                            "answer_type": 2,
                            "answer_type_tutor": 2,
                            "scenario_id": 1,
                            "scenario_type": 2,
                            "created_at": "2017-08-15 06:03:56",
                            "updated_at": "2017-08-15 06:03:56"
                        },
                        {
                            "id": 8,
                            "txt": "Coding",
                            "answer_type": 2,
                            "answer_type_tutor": 2,
                            "scenario_id": 1,
                            "scenario_type": 2,
                            "created_at": "2017-08-15 06:03:56",
                            "updated_at": "2017-08-15 06:03:56"
                        },
                        {
                            "id": 9,
                            "txt": "Cooking or baking",
                            "answer_type": 2,
                            "answer_type_tutor": 2,
                            "scenario_id": 1,
                            "scenario_type": 2,
                            "created_at": "2017-08-15 06:03:56",
                            "updated_at": "2017-08-15 06:03:56"
                        },
                        {
                            "id": 10,
                            "txt": "Vlogging",
                            "answer_type": 2,
                            "answer_type_tutor": 2,
                            "scenario_id": 1,
                            "scenario_type": 2,
                            "created_at": "2017-08-15 06:03:56",
                            "updated_at": "2017-08-15 06:03:56"
                        },
                        {
                            "id": 11,
                            "txt": "Modifying a car (real or model)",
                            "answer_type": 2,
                            "answer_type_tutor": 2,
                            "scenario_id": 1,
                            "scenario_type": 2,
                            "created_at": "2017-08-15 06:03:56",
                            "updated_at": "2017-08-15 06:03:56"
                        },
                        {
                            "id": 12,
                            "txt": "Collecting sea shells by the sea shore",
                            "answer_type": 2,
                            "answer_type_tutor": 2,
                            "scenario_id": 1,
                            "scenario_type": 2,
                            "created_at": "2017-08-15 06:03:56",
                            "updated_at": "2017-08-15 06:03:56"
                        },
                        {
                            "id": 13,
                            "txt": "Something else",
                            "answer_type": 2,
                            "answer_type_tutor": 2,
                            "scenario_id": 1,
                            "scenario_type": 2,
                            "created_at": "2017-08-15 06:03:56",
                            "updated_at": "2017-08-15 06:03:56"
                        },
                        {
                            "id": 14,
                            "txt": "I’m more of a napper",
                            "answer_type": 2,
                            "answer_type_tutor": 2,
                            "scenario_id": 1,
                            "scenario_type": 2,
                            "created_at": "2017-08-15 06:03:56",
                            "updated_at": "2017-08-15 06:03:56"
                        },
                        {
                            "id": 15,
                            "txt": "Bieber fever",
                            "answer_type": 2,
                            "answer_type_tutor": 2,
                            "scenario_id": 2,
                            "scenario_type": 2,
                            "created_at": "2017-08-15 06:03:56",
                            "updated_at": "2017-08-15 06:03:56"
                        },
                        {
                            "id": 16,
                            "txt": "I’m gaga over Gaga",
                            "answer_type": 2,
                            "answer_type_tutor": 2,
                            "scenario_id": 2,
                            "scenario_type": 2,
                            "created_at": "2017-08-15 06:03:56",
                            "updated_at": "2017-08-15 06:03:56"
                        },
                        {
                            "id": 17,
                            "txt": "Imagining me some dragons",
                            "answer_type": 2,
                            "answer_type_tutor": 2,
                            "scenario_id": 2,
                            "scenario_type": 2,
                            "created_at": "2017-08-15 06:03:56",
                            "updated_at": "2017-08-15 06:03:56"
                        }

                    ],
                    "group_type": {
                        "id": 1,
                        "txt": "no group",
                        "created_at": "2017-08-15 06:03:55",
                        "updated_at": "2017-08-15 06:03:55"
                    }
                }
            ]
        }
    ],
    "message": "Ok"
}

On above response , the response the “scenario_type”: 2, “scenario_id”: 1 should have scenarios_answers should be with “scenario_type”: 2, “scenario_id”: 1 only means the scenario answer “Bieber fever” id=15 and onward should not be in the answer array.

Any help would be appropriated thanks in advanced.