Support the ongoing development of →
Security Eloquent Installation
Last updated 1 year ago.

That $hidden is only used when serializing the model. (toJson() toArray()). This only hides 'attributes' of the model. Doing a var_dump is a php level thing that is dumping the actual object.

$model->toArray() will not contain your password field or the remember token.


Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.