laravel-scout-postgres icon indicating copy to clipboard operation
laravel-scout-postgres copied to clipboard

Getting all columns even hidden

Open thewebartisan7 opened this issue 4 years ago • 1 comments

I am getting all columns even hidden by just running below:

$model->search($query)->get() or $model->search($query)->paginate()

As you can see in below screenshot, there is hidden columns set but in attributes you can see password, searchable and remember_token

Screenshot 2020-09-21 at 11 05 57

Am I missing something?

thewebartisan7 avatar Sep 21 '20 09:09 thewebartisan7

Is this just in the DD or can you access/modify the hidden attributes in your code? Using php artisan tinker, my models do not display the hidden attributes.

devNoiseConsulting avatar Nov 02 '20 19:11 devNoiseConsulting