$request->input() removing "+" from POST'd international phone numbers
Hi all,
I'm pretty sure that this is me being 100% dumb - its now into hour 20 of coding...
I'm posting International phone numbers from an API bridge to my Laravel App - but when I retrieve the number from the Request it has the "+" replaced with " ".
So, for example, if I POST "+4480012345678" the Laravel Request input is " 4480012345678"
V. frustrating.
What's the really dumb thing I'm not going please!
I'd make a guess at some urlencode/decode stuff : http://php.net/manual/en/function.urlencode.php . The easiest way around it (assuming there isn't an easy laravel-ish way) would maybe be a quick hack like $number = preg_replace('/^\s+/', '+', $number);.