title: Laravel - Method Illuminate\\Support\\Collection::makeHidden does not exist
body: <p>I want to hide the columns <code>password</code> &amp; <code>OTP</code> ,that is included in <code>$uses</code> result. Actually these 2 columns are part of the <code>users</code> table.  I've tried like below. But it generates the error - <code>Method Illuminate\\Support\\Collection::makeHidden does not exist</code> . How to solve this? Any suggestions..</p>
  <pre><code>$users = DB::table('users')
              -&gt;join('location', 'users.id', '=', 'location.id')
              -&gt;join('user_technical_details', 'users.id', '=', 'user_technical_details.id')
              -&gt;get();
  $d=$users-&gt;makeHidden(['password','OTP']);    
  return response()-&gt;json([
              'message' =&gt; 'profile viewed successfully',
              'data' =&gt; $d,
              'statusCode' =&gt; 200,
              'status' =&gt; 'success'],200);  
  </code></pre>