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

Hidden property not being generated in base Model files #238

Open
btrsco opened this issue Jun 28, 2022 · 0 comments
Open

Hidden property not being generated in base Model files #238

btrsco opened this issue Jun 28, 2022 · 0 comments

Comments

@btrsco
Copy link

btrsco commented Jun 28, 2022

As an example, using the default User model and migration. If you generate models with *.base_files set to false it will generate the model with the patterns used in the config. But when I try to generate with *.base_files set to true it does not generate the $hidden property at all.

// Models/User.php

protected $hidden = [
    'password',
    'remember_token'
];

I'm assuming this works like the $fillable property, but that one was a config option to move it to the base model file. Sorry for wasting you time if this is working as intended, just feel like this is a bug or missing the customizability.

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

1 participant