Yasen Sayed
Published in : 2022-02-22
Basically, I am using PHP Laravel and creating a new package, I like to exclude private properties from the object or dd.
Anyone can help me?
Please look at the below screenshot.
You can add it to $hidden array inside the module like this
protected $hidden = [
'password',
'remember_token',
];
Yasen Sayed Date : 2022-02-22
I will try it tomorrow but, I create a custom eloquent like the one created in Laravel.
Join our community and get the chance to solve your code issues & share your opinion with us
Sign up Now