I'm racking my brain over this. I need this value to allow me to add values like 16.000,00 but when I enter it gives an error or if I enter 16.000 only 16.00 appears on my page
class BidController extends Controller
{
public function bid(Request $request, $product_id, $slug)
{
$product = Product::running()->where('id',$product_id)->firstOrFail();
if (count($product->bids) > 0){
$min_amount = getAmount($product->bids->max('bid_amount'));
$request->validate([
'amount' => 'required|numeric|gt:'. $min_amount
]);
} else {
$min_amount = getAmount($product->min_bid_price);
$request->validate([
'amount' => 'required|numeric|gte:'. $min_amount
]);
}
I’ve looked everywhere and I can’t figure it out!
I need to create a mask so that the value also appears in this form 000.000,00 which is the value in Brazilian Real