[Solved] number_format(): Argument #1 ($num) must be of type float [closed]

[ad_1]

Pluck will still return a collection. You’d need to iterate through it, either with another foreach loop, or such as through map, etc:

@foreach($amazings as $product)
    @foreach($product->prices->pluck('value')->all() as $val)
        {{ number_format($val) }}
    @endforeach
@endforeach

[ad_2]

solved number_format(): Argument #1 ($num) must be of type float [closed]