Answers for "hide specific property from json laravel"

PHP
0

laravel hiding attributes JSON

//Add the field into $hidden attribute of your Model
class MyModel extends Model
{
    protected $hidden = ['hidden_field_name'];
}
Posted by: Guest on January-14-2021

Code answers related to "hide specific property from json laravel"

Browse Popular Code Answers by Language