src/Helper.php
public static function setCurrentAppKeyForRequest($key, Request $request = null)
    {
        $request = $request ?: app('request');

        $request->attributes->set(static::CURRENT_APP_KEY, $key);

        return $request;
    }
public static function setCurrentAppKeyForRequest($key, Request $request = null)
    {
        $request = $request ?: app('request');

        $request->attributes->set(static::CURRENT_APP_KEY, $key);

        return $request;
    }
Set the current app key for the request.

@param  string  $key
@param  \Illuminate\Http\Request|null  $request
@return \Illuminate\Http\Request