Chron
2 months ago
187
1
Laravel

Out of range value

Posted 2 months ago by Chron

Here's the data that I want to record:

Pay::create(['user_id'=>'1', 'amount'=> 2500.00])

I'm getting Numeric value out of range: 1264 Out of range value for column 'amount' at row 1 even though the column is set to decimal(4, 2). Is there a way to fix this?

Please sign in or create an account to participate in this conversation.