900719925474099988 reaches your components as 900719925474100000. Big integer support keeps them exact by delivering them as native BigInt values, following the JSON convention documented on MDN.
Enabling Big Integers
Big integer support is disabled by default and is enabled entirely on the server, so there is nothing to configure on the client. You may enable it for every response in yourconfig/inertia.php file, or through the INERTIA_PRESERVE_BIG_INTEGERS environment variable.
config/inertia.php
preserveBigIntegers method. This is useful when only a few pages of your application deal with large integers.
false opts a single response out, which is useful once the feature is enabled in your configuration file.
How Values Are Transported
Integers outside the safe range are wrapped in a marker object before the response is encoded. The client turns that marker back into aBigInt, so your component receives the exact value.
BigInt. The same prop may therefore arrive as a number or a BigInt, depending on its value. Flash data receives the same treatment as props.
Markers are only revived on pages that enable big integer support, so applications that already send their own {"$bigint": "..."} objects continue to receive them as plain objects everywhere else.
Objects and Classes
Arrays, plain objects, Eloquent models, collections, API resources, and values implementingJsonSerializable are all inspected for large integers, as are the public properties of your own classes. Built-in PHP classes such as DateTime, along with classes extending them, are passed through untouched, since they serialize through their own handlers.
Submitting Big Integers
ABigInt submitted through the router, a form, or Precognition is sent as its digits, the same way form data and query strings send numbers. Your controller receives a numeric string, which validation rules such as integer and the request’s integer method handle as usual.
useHttp hook does not handle BigInt values, since it is commonly used to call third-party APIs. Convert those values to a string before sending them.