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


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

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