Laravel Database Query Builder insertGetId() method always returning 2147483647

When you are using Laravel insertGetId() method to insert a record and retrieve the ID and is consistently 2147483647 value, but when you check the database it is not the normal value you would expect, it is because your PHP is running in 32bit mode and the range of the int value on this mode Read more about Laravel Database Query Builder insertGetId() method always returning 2147483647[…]