private function setUserCurrency($currency, $request)
    {
        $currency = strtoupper($currency);

        // Set user selection globally
        currency()->setUserCurrency($currency);

        // Save it for later too!
        $request->getSession()->put(['currency' => $currency]);

        return $currency;
    }
private function setUserCurrency($currency, $request)
    {
        $currency = strtoupper($currency);

        // Set user selection globally
        currency()->setUserCurrency($currency);

        // Save it for later too!
        $request->getSession()->put(['currency' => $currency]);

        return $currency;
    }
private function setUserCurrency ( $ currency , $ request ) { $ currency = strtoupper ( $ currency ) ; // Set user selection globally currency ( ) -> setUserCurrency ( $ currency ) ; // Save it for later too! $ request -> getSession ( ) -> put ( [ 'currency' => $ currency ] ) ; return $ currency ; }
Set the user currency.

@param string  $currency
@param Request $request

@return string
Set the user currency .