laravel
laravel copied to clipboard
Hidden property not being generated in base Model files
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.