Laravel makeHidden (how to use)
no need to loop as you are using find method and find method always give single result

$result = TheEpisode::find($id);
$result-&gt;TheParts-&gt;makeHidden("title");
dd($result-&gt;toArray());