Say I have a table Client
and this has some columns. I specifically do not want to send back a few of the columns in the this table when a call is made to the model.
How can I do this?
Oh it's really simple, just add
protected $hidden = array('password');
to your model class! Check out the docs for more info! http://laravel.com/docs/eloquent
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With