Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting all columns even hidden #39

Open
thewebartisan7 opened this issue Sep 21, 2020 · 1 comment
Open

Getting all columns even hidden #39

thewebartisan7 opened this issue Sep 21, 2020 · 1 comment

Comments

@thewebartisan7
Copy link

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?

@devNoiseConsulting
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants