public function handle($request, Closure $next, $apiVersion, $apiName = null)
    {
        APIResource::setVersion($apiVersion, $apiName);
        return $next($request);
    }
public function handle($request, Closure $next, $apiVersion, $apiName = null)
    {
        APIResource::setVersion($apiVersion, $apiName);
        return $next($request);
    }
public function handle ( $ request , Closure $ next , $ apiVersion , $ apiName = null ) { APIResource :: setVersion ( $ apiVersion , $ apiName ) ; return $ next ( $ request ) ; }
Handle an incoming request by setting
the request's api's current version

@param \Illuminate\Http\Request $request
@param \Closure $next

@param string $apiVersion
@param string $apiName = null

@return mixed
Handle an incoming request by setting the request s api s current version