laravel hiding attributes JSON
//Add the field into $hidden attribute of your Model
class MyModel extends Model
{
protected $hidden = ['hidden_field_name'];
}
Are there any code examples left?
New code examples in category PHP
//Add the field into $hidden attribute of your Model
class MyModel extends Model
{
protected $hidden = ['hidden_field_name'];
}