snakeAttributes property
Laravel's Model::$snakeAttributes: toJson writes the relation
tipeUjian as tipe_ujian. Set it to false at boot to keep the names
as declared, or per model with ModelDefinition.snakeAttributes.
Implementation
static bool snakeAttributes = true;