<?php

namespace App\Transformers\Outbound\Collections\Traits;

trait HidesDefaultFields
{

    protected function getIds()
    {
        return [];
    }

    protected function getTitles()
    {
        return [];
    }

    protected function getDates()
    {
        return [];
    }

}

<?php

namespace App\Transformers\Outbound\Collections\Traits;

trait HidesDefaultFields
{

    protected function getIds()
    {
        return [];
    }

    protected function getTitles()
    {
        return [];
    }

    protected function getDates()
    {
        return [];
    }

    protected function getSearchFields()
    {
        return [];
    }

    protected function getSuggestFields()
    {
        return [];
    }

}

Exclude search fields from pivot models
Exclude search fields from pivot models
