Laravel How to display $hidden attribute on model on paginate : <p>I'm using Laravel 5.5.
I read about this and know this function and it works <a href="https://laravel.com/docs/5.5/eloquent-serialization#hiding-attributes-from-json" rel="noreferrer">makeVisible</a> </p>

<pre><code>$hidden = ['password', 'remember_token', 'email'];
</code></pre>

<p>I can display email using </p>

<pre><code>$profile = auth()-&gt;user()-&gt;find($request-&gt;user()-&gt;id);
$profile-&gt;makeVisible(['email']);
</code></pre>

<p>On the frontend email is displayed. But it not works on many results like</p>

<pre><code> // Get all users
 $users = User::with('role', 'level')-&gt;makeVisible(['email'])-&gt;paginate(10); // Doesn't work
</code></pre>

<p>Also try this method <a href="https://laracasts.com/discuss/channels/laravel/dynamic-hiddenvisible-attribute" rel="noreferrer">from Laracasts toJson</a> it works but I can't do it using paginate. Can you provide other methods or how to solve this? My aim is to display <code>email</code> column that is hidden. Thanks.</p>
