protected function getResourceId(Request $request)
    {
        if ($resourceId = $request->get('viaResourceId')) {
            return $resourceId;
        };

        parse_str(parse_url($request->server->get('HTTP_REFERER'), PHP_URL_QUERY), $params);

        if ($resourceId = array_get($params, 'viaResourceId')) {
            return $resourceId;
        };

        if ($resourceId = $request->route('resourceId')) {
            return $resourceId;
        };

        return null;
    }
protected function getResourceId(Request $request)
    {
        if ($resourceId = $request->get('viaResourceId')) {
            return $resourceId;
        };

        parse_str(parse_url($request->server->get('HTTP_REFERER'), PHP_URL_QUERY), $params);

        if ($resourceId = array_get($params, 'viaResourceId')) {
            return $resourceId;
        };

        if ($resourceId = $request->route('resourceId')) {
            return $resourceId;
        };

        return null;
    }
protected function getResourceId ( Request $ request ) { if ( $ resourceId = $ request -> get ( 'viaResourceId' ) ) { return $ resourceId ; } ; parse_str ( parse_url ( $ request -> server -> get ( 'HTTP_REFERER' ) , PHP_URL_QUERY ) , $ params ) ; if ( $ resourceId = array_get ( $ params , 'viaResourceId' ) ) { return $ resourceId ; } ; if ( $ resourceId = $ request -> route ( 'resourceId' ) ) { return $ resourceId ; } ; return null ; }
Get the resource ID of the current repeater item

@param Request $request
@return mixed
Get the resource ID of the current repeater item