['required', 'string'], 'lat' => ['nullable', 'numeric', 'between:-90,90'], 'lng' => ['nullable', 'numeric', 'between:-180,180'], ]; } public function fuelType(): FuelType { try { return FuelType::fromAlias($this->string('fuel_type')->toString()); } catch (\ValueError) { throw ValidationException::withMessages(['fuel_type' => 'Unknown fuel type. Use: diesel, petrol, e10, e5, hvo, b10.']); } } }