I'm using snowflake IDs which are bigInts for my Laravel API project, Vuejs/JS does not support the size of the IDs so requires them to be converted to strings.
If I cast all my IDs in each model
protected $casts = [
'id' => 'string',
];
Does Laravel use these value types for relationships therefore slowing queries comparing strings apposed to ints?
Is there a way to have all responses convert the ID's to strings without affecting the model itself and it's relationships?