*/ protected $fillable = []; protected $guarded = []; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ 'password' ]; /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return []; } public function getBalanceAttribute($value): string { return number_format($value / 100, 2, '.', ''); } public function getBenefitAttribute($value): string { return number_format($value / 100, 2, '.', ''); } }