<?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 [];
    }

}

<?php

namespace App\Transformers\Outbound\Collections\Traits;

trait HidesDefaultFields
{

    protected function getIds()
    {
        return [];
    }

    protected function getTitles()
    {
        return [];
    }

    protected function getDates()
    {
        return [];
    }

}

--- 
+++ 
@@ -20,4 +20,14 @@
         return [];
     }
 
+    protected function getSearchFields()
+    {
+        return [];
+    }
+
+    protected function getSuggestFields()
+    {
+        return [];
+    }
+
 }
Exclude search fields from pivot models
