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!
The Laravel portal for problem solving, knowledge sharing and community building.
The community