hide specific property from json laravel code example
Example: laravel hiding attributes JSON
//Add the field into $hidden attribute of your Model
class MyModel extends Model
{
protected $hidden = ['hidden_field_name'];
}
//Add the field into $hidden attribute of your Model
class MyModel extends Model
{
protected $hidden = ['hidden_field_name'];
}